Skip to content

Commit 8c800ed

Browse files
committed
wip
1 parent 5bb4760 commit 8c800ed

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def create(
3030
self,
3131
agent_id: str,
3232
*,
33-
input: Union[str, List[MaestroMessage]],
33+
input: str | List[MaestroMessage],
3434
**kwargs,
3535
) -> RunResponse:
3636
"""Create an agent run using maestro client with agent configuration"""
@@ -83,14 +83,14 @@ async def create(
8383
self,
8484
*,
8585
name: str,
86-
description: Union[str, NotGiven] = NOT_GIVEN,
87-
optimization: Union[str, NotGiven] = NOT_GIVEN,
88-
avatar: Union[str, NotGiven] = NOT_GIVEN,
86+
description: str | NotGiven = NOT_GIVEN,
87+
optimization: str | NotGiven = NOT_GIVEN,
88+
avatar: str | NotGiven = NOT_GIVEN,
8989
models: List[str] | NotGiven = NOT_GIVEN,
9090
tools: List[Dict[str, Any]] | NotGiven = NOT_GIVEN,
9191
tool_resources: Dict[str, Any] | NotGiven = NOT_GIVEN,
9292
requirements: List[AgentRequirement] | NotGiven = NOT_GIVEN,
93-
budget: Union[BudgetLevel, NotGiven] = NOT_GIVEN,
93+
budget: BudgetLevel | NotGiven = NOT_GIVEN,
9494
**kwargs,
9595
) -> Agent:
9696
"""Create a new agent"""

0 commit comments

Comments
 (0)