Skip to content

Commit 7b1b642

Browse files
feat(api): api update
1 parent ea9467f commit 7b1b642

4 files changed

Lines changed: 2 additions & 15 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 64
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp/agentex-sdk-634c3b691c4bb1495260c8daa07b86d9945ef00284ef385f1559850cc939ee63.yml
3-
openapi_spec_hash: a7af5fa29fb031a17a025c2dd95a4dba
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp/agentex-sdk-f6bcef733992533e1b1d66c2207e42a934fa0ec9646e3d6a6268fad17e73c834.yml
3+
openapi_spec_hash: 3aae4790b24edf6ea9469c1680d513ae
44
config_hash: 82cb83ac175dbf40265128506294218b

src/agentex/resources/agents/agents.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def register_build(
243243
description: str,
244244
name: str,
245245
agent_input_type: Optional[Literal["text", "json"]] | Omit = omit,
246-
principal_context: object | Omit = omit,
247246
registration_metadata: Optional[Dict[str, object]] | Omit = omit,
248247
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
249248
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -263,8 +262,6 @@ def register_build(
263262
264263
agent_input_type: The type of input the agent expects.
265264
266-
principal_context: Principal used for authorization
267-
268265
registration_metadata: The metadata for the agent's build registration.
269266
270267
extra_headers: Send extra headers
@@ -282,7 +279,6 @@ def register_build(
282279
"description": description,
283280
"name": name,
284281
"agent_input_type": agent_input_type,
285-
"principal_context": principal_context,
286282
"registration_metadata": registration_metadata,
287283
},
288284
agent_register_build_params.AgentRegisterBuildParams,
@@ -908,7 +904,6 @@ async def register_build(
908904
description: str,
909905
name: str,
910906
agent_input_type: Optional[Literal["text", "json"]] | Omit = omit,
911-
principal_context: object | Omit = omit,
912907
registration_metadata: Optional[Dict[str, object]] | Omit = omit,
913908
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
914909
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -928,8 +923,6 @@ async def register_build(
928923
929924
agent_input_type: The type of input the agent expects.
930925
931-
principal_context: Principal used for authorization
932-
933926
registration_metadata: The metadata for the agent's build registration.
934927
935928
extra_headers: Send extra headers
@@ -947,7 +940,6 @@ async def register_build(
947940
"description": description,
948941
"name": name,
949942
"agent_input_type": agent_input_type,
950-
"principal_context": principal_context,
951943
"registration_metadata": registration_metadata,
952944
},
953945
agent_register_build_params.AgentRegisterBuildParams,

src/agentex/types/agent_register_build_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,5 @@ class AgentRegisterBuildParams(TypedDict, total=False):
1818
agent_input_type: Optional[Literal["text", "json"]]
1919
"""The type of input the agent expects."""
2020

21-
principal_context: object
22-
"""Principal used for authorization"""
23-
2421
registration_metadata: Optional[Dict[str, object]]
2522
"""The metadata for the agent's build registration."""

tests/api_resources/test_agents.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def test_method_register_build_with_all_params(self, client: Agentex) -> None:
205205
description="description",
206206
name="name",
207207
agent_input_type="text",
208-
principal_context={},
209208
registration_metadata={"foo": "bar"},
210209
)
211210
assert_matches_type(Agent, agent, path=["response"])
@@ -600,7 +599,6 @@ async def test_method_register_build_with_all_params(self, async_client: AsyncAg
600599
description="description",
601600
name="name",
602601
agent_input_type="text",
603-
principal_context={},
604602
registration_metadata={"foo": "bar"},
605603
)
606604
assert_matches_type(Agent, agent, path=["response"])

0 commit comments

Comments
 (0)