@@ -40,19 +40,19 @@ def create(
4040 self ,
4141 * ,
4242 api_version : Optional [str ] = None ,
43- id : Optional [str ] = None ,
4443 base_agent : Optional [str ] = None ,
45- system_instruction : Optional [str ] = None ,
44+ base_environment : Optional [
45+ Union [agents_agent .BaseEnvironment , agents_agent .BaseEnvironmentParam ]
46+ ] = None ,
4647 description : Optional [str ] = None ,
48+ id : Optional [str ] = None ,
49+ system_instruction : Optional [str ] = None ,
4750 tools : Optional [
4851 Union [
4952 Iterable [agents_agenttool .AgentTool ],
5053 Iterable [agents_agenttool .AgentToolParam ],
5154 ]
5255 ] = None ,
53- base_environment : Optional [
54- Union [agents_agent .BaseEnvironment , agents_agent .BaseEnvironmentParam ]
55- ] = None ,
5656 extra_headers : Optional [Mapping [str , str ]] = None ,
5757 extra_query : Optional [Mapping [str , Any ]] = None ,
5858 extra_body : Optional [Mapping [str , Any ]] = None ,
@@ -61,12 +61,12 @@ def create(
6161 r"""Creates a new Agent (Typed version for SDK).
6262
6363 :param api_version: Which version of the API to use.
64- :param id: The unique identifier for the agent.
6564 :param base_agent: The base agent to extend.
66- :param system_instruction: System instruction for the agent.
65+ :param base_environment: The environment configuration for the agent.
6766 :param description: Agent description for developers to quickly read and understand.
67+ :param id: The unique identifier for the agent.
68+ :param system_instruction: System instruction for the agent.
6869 :param tools: The tools available to the agent.
69- :param base_environment: The environment configuration for the agent.
7070 :param extra_headers: Additional headers to set or replace on requests.
7171 :param extra_query: Additional query parameters to append to requests.
7272 :param extra_body: Additional JSON object fields to merge into request bodies.
@@ -89,14 +89,14 @@ def create(
8989 request = models .CreateAgentRequest (
9090 api_version = api_version ,
9191 body = agents .Agent (
92- id = id ,
9392 base_agent = base_agent ,
94- system_instruction = system_instruction ,
95- description = description ,
96- tools = utils .get_pydantic_model (tools , Optional [List [agents .AgentTool ]]),
9793 base_environment = utils .get_pydantic_model (
9894 base_environment , Optional [agents .BaseEnvironment ]
9995 ),
96+ description = description ,
97+ id = id ,
98+ system_instruction = system_instruction ,
99+ tools = utils .get_pydantic_model (tools , Optional [List [agents .AgentTool ]]),
100100 ),
101101 )
102102
@@ -815,19 +815,19 @@ async def create(
815815 self ,
816816 * ,
817817 api_version : Optional [str ] = None ,
818- id : Optional [str ] = None ,
819818 base_agent : Optional [str ] = None ,
820- system_instruction : Optional [str ] = None ,
819+ base_environment : Optional [
820+ Union [agents_agent .BaseEnvironment , agents_agent .BaseEnvironmentParam ]
821+ ] = None ,
821822 description : Optional [str ] = None ,
823+ id : Optional [str ] = None ,
824+ system_instruction : Optional [str ] = None ,
822825 tools : Optional [
823826 Union [
824827 Iterable [agents_agenttool .AgentTool ],
825828 Iterable [agents_agenttool .AgentToolParam ],
826829 ]
827830 ] = None ,
828- base_environment : Optional [
829- Union [agents_agent .BaseEnvironment , agents_agent .BaseEnvironmentParam ]
830- ] = None ,
831831 extra_headers : Optional [Mapping [str , str ]] = None ,
832832 extra_query : Optional [Mapping [str , Any ]] = None ,
833833 extra_body : Optional [Mapping [str , Any ]] = None ,
@@ -836,12 +836,12 @@ async def create(
836836 r"""Creates a new Agent (Typed version for SDK).
837837
838838 :param api_version: Which version of the API to use.
839- :param id: The unique identifier for the agent.
840839 :param base_agent: The base agent to extend.
841- :param system_instruction: System instruction for the agent.
840+ :param base_environment: The environment configuration for the agent.
842841 :param description: Agent description for developers to quickly read and understand.
842+ :param id: The unique identifier for the agent.
843+ :param system_instruction: System instruction for the agent.
843844 :param tools: The tools available to the agent.
844- :param base_environment: The environment configuration for the agent.
845845 :param extra_headers: Additional headers to set or replace on requests.
846846 :param extra_query: Additional query parameters to append to requests.
847847 :param extra_body: Additional JSON object fields to merge into request bodies.
@@ -864,14 +864,14 @@ async def create(
864864 request = models .CreateAgentRequest (
865865 api_version = api_version ,
866866 body = agents .Agent (
867- id = id ,
868867 base_agent = base_agent ,
869- system_instruction = system_instruction ,
870- description = description ,
871- tools = utils .get_pydantic_model (tools , Optional [List [agents .AgentTool ]]),
872868 base_environment = utils .get_pydantic_model (
873869 base_environment , Optional [agents .BaseEnvironment ]
874870 ),
871+ description = description ,
872+ id = id ,
873+ system_instruction = system_instruction ,
874+ tools = utils .get_pydantic_model (tools , Optional [List [agents .AgentTool ]]),
875875 ),
876876 )
877877
0 commit comments