|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | | -from typing import Awaitable, Callable, List, Dict, Any, Union |
| 3 | +from typing import Awaitable, Callable, List, Dict, Any |
4 | 4 |
|
5 | 5 | from ai21.clients.common.agents.agents import BaseAgents |
6 | 6 | from ai21.clients.common.agents.run import BaseAgentRun |
@@ -121,26 +121,20 @@ async def modify( |
121 | 121 | self, |
122 | 122 | agent_id: str, |
123 | 123 | *, |
124 | | - name: Union[str, NotGiven] = NOT_GIVEN, |
125 | | - description: Union[str, NotGiven] = NOT_GIVEN, |
126 | | - optimization: Union[str, NotGiven] = NOT_GIVEN, |
127 | | - avatar: Union[str, NotGiven] = NOT_GIVEN, |
128 | | - is_archived: Union[bool, NotGiven] = NOT_GIVEN, |
| 124 | + name: str | NotGiven = NOT_GIVEN, |
| 125 | + description: str | NotGiven = NOT_GIVEN, |
129 | 126 | models: List[str] | NotGiven = NOT_GIVEN, |
130 | 127 | tools: List[Dict[str, Any]] | NotGiven = NOT_GIVEN, |
131 | 128 | tool_resources: Dict[str, Any] | NotGiven = NOT_GIVEN, |
132 | 129 | requirements: List[AgentRequirement] | NotGiven = NOT_GIVEN, |
133 | | - budget: Union[BudgetLevel, NotGiven] = NOT_GIVEN, |
134 | | - visibility: Union[Visibility, NotGiven] = NOT_GIVEN, |
| 130 | + budget: BudgetLevel | NotGiven = NOT_GIVEN, |
| 131 | + visibility: Visibility | NotGiven = NOT_GIVEN, |
135 | 132 | **kwargs, |
136 | 133 | ) -> Agent: |
137 | 134 | """Modify an existing agent""" |
138 | 135 | body = self._modify_body( |
139 | 136 | name=name, |
140 | 137 | description=description, |
141 | | - optimization=optimization, |
142 | | - avatar=avatar, |
143 | | - is_archived=is_archived, |
144 | 138 | models=models, |
145 | 139 | tools=tools, |
146 | 140 | tool_resources=tool_resources, |
|
0 commit comments