From 8a6702d76b329b09998492f5eacb141ae2a08710 Mon Sep 17 00:00:00 2001 From: Devansh Jain <31609257+devanshrj@users.noreply.github.com> Date: Wed, 29 Oct 2025 11:27:53 -0700 Subject: [PATCH] fix: Model update api (#28) --- src/agent/modify.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/modify.ts b/src/agent/modify.ts index 5a150e9..dac5fbf 100644 --- a/src/agent/modify.ts +++ b/src/agent/modify.ts @@ -23,7 +23,7 @@ export async function updateAgentLLMConfig( const client = await getClient(); // Step 1: Update model (top-level field) - await client.agents.update(agentId, { model: modelHandle }); + await client.agents.modify(agentId, { model: modelHandle }); // Step 2: Get updated agent to retrieve current llm_config const agent = await client.agents.retrieve(agentId); @@ -35,7 +35,7 @@ export async function updateAgentLLMConfig( ...finalConfig, ...updateArgs, } as LlmConfig; - await client.agents.update(agentId, { llm_config: updatedLlmConfig }); + await client.agents.modify(agentId, { llm_config: updatedLlmConfig }); // Retrieve final state const finalAgent = await client.agents.retrieve(agentId);