@@ -30,11 +30,10 @@ def _create_body(
3030 tool_resources : Dict [str , Any ] | NotGiven ,
3131 requirements : List [Requirement ] | NotGiven ,
3232 budget : BudgetLevel | NotGiven ,
33- agent_type : AgentType | NotGiven ,
3433 response_language : ResponseLanguage | NotGiven ,
3534 ** kwargs ,
3635 ) -> dict :
37- body = remove_not_given (
36+ return remove_not_given (
3837 {
3938 "name" : name ,
4039 "description" : description ,
@@ -43,15 +42,10 @@ def _create_body(
4342 "tool_resources" : tool_resources ,
4443 "requirements" : requirements ,
4544 "budget" : budget ,
46- "agent_type" : agent_type ,
4745 "response_language" : response_language ,
4846 ** kwargs ,
4947 }
5048 )
51- # Map agent_type to assistant_type for API compatibility
52- if "agent_type" in body :
53- body ["assistant_type" ] = body .pop ("agent_type" )
54- return body
5549
5650 def _modify_body (
5751 self ,
@@ -115,9 +109,6 @@ def modify(
115109 * ,
116110 name : str | NotGiven = NOT_GIVEN ,
117111 description : str | NotGiven = NOT_GIVEN ,
118- optimization : str | NotGiven = NOT_GIVEN ,
119- avatar : str | NotGiven = NOT_GIVEN ,
120- is_archived : bool | NotGiven = NOT_GIVEN ,
121112 models : List [str ] | NotGiven = NOT_GIVEN ,
122113 tools : List [Dict [str , Any ]] | NotGiven = NOT_GIVEN ,
123114 tool_resources : Dict [str , Any ] | NotGiven = NOT_GIVEN ,
0 commit comments