We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a59b13 commit 342e68bCopy full SHA for 342e68b
src/agentex/resources/agents.py
@@ -421,7 +421,7 @@ def send_message(
421
extra_body: Body | None = None,
422
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
423
) -> SendMessageResponse:
424
- if agent_id is not None and agent_name is not None:
+ if (agent_id is None) and (agent_name is None):
425
raise ValueError("Either agent_id or agent_name must be provided, but not both")
426
427
if "stream" in params and params["stream"] == True:
0 commit comments