From 0aa9621cab7f4686aea19c989c97548d2d4c94a0 Mon Sep 17 00:00:00 2001 From: Dmitry Paramonov Date: Tue, 14 Jan 2025 15:52:43 +0300 Subject: [PATCH] fix: Patch instructions and canonical name --- agents-api/agents_api/queries/agents/patch_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/queries/agents/patch_agent.py b/agents-api/agents_api/queries/agents/patch_agent.py index 94cbb487b..46a06b9a1 100644 --- a/agents-api/agents_api/queries/agents/patch_agent.py +++ b/agents-api/agents_api/queries/agents/patch_agent.py @@ -80,7 +80,7 @@ async def patch_agent( data.metadata, data.model, data.default_settings.model_dump() if data.default_settings else None, - data.instructions, + [data.instructions] if isinstance(data.instructions, str) else data.instructions, data.canonical_name, ]