Skip to content

Commit 1d550aa

Browse files
committed
wip
1 parent 8c800ed commit 1d550aa

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

ai21/clients/studio/resources/agents/async_agents.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Awaitable, Callable, List, Dict, Any, Union
3+
from typing import Awaitable, Callable, List, Dict, Any
44

55
from ai21.clients.common.agents.agents import BaseAgents
66
from ai21.clients.common.agents.run import BaseAgentRun
@@ -121,26 +121,20 @@ async def modify(
121121
self,
122122
agent_id: str,
123123
*,
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,
129126
models: List[str] | NotGiven = NOT_GIVEN,
130127
tools: List[Dict[str, Any]] | NotGiven = NOT_GIVEN,
131128
tool_resources: Dict[str, Any] | NotGiven = NOT_GIVEN,
132129
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,
135132
**kwargs,
136133
) -> Agent:
137134
"""Modify an existing agent"""
138135
body = self._modify_body(
139136
name=name,
140137
description=description,
141-
optimization=optimization,
142-
avatar=avatar,
143-
is_archived=is_archived,
144138
models=models,
145139
tools=tools,
146140
tool_resources=tool_resources,

0 commit comments

Comments
 (0)