Skip to content

Commit 342e68b

Browse files
author
Charlotte Zhuang
committed
fix(manual): send_message should allow either agent_id or agent_name
1 parent 5a59b13 commit 342e68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentex/resources/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def send_message(
421421
extra_body: Body | None = None,
422422
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
423423
) -> SendMessageResponse:
424-
if agent_id is not None and agent_name is not None:
424+
if (agent_id is None) and (agent_name is None):
425425
raise ValueError("Either agent_id or agent_name must be provided, but not both")
426426

427427
if "stream" in params and params["stream"] == True:

0 commit comments

Comments
 (0)