Update Agent
PUT /v1/agents/{agent_id}
This operation can change data. Use resources you control.
Request fields
| Field | Location | Type | Required |
|---|---|---|---|
agent_id | path | string | Required |
algorithm_id | body | string | null | Optional |
allowed_tools | body | List of string | null | Optional |
api_key_id | body | string | null | Optional |
api_key_name | body | string | null | Optional |
catalog_starter_prompts | body | List of CatalogStarterPromptInput | null | Optional |
catalog_usage_guidance | body | string | null | Optional |
category | body | string | null | Optional |
clear_algorithm_id | body | boolean | null | Optional |
clear_temperature | body | boolean | null | Optional |
description | body | string | null | Optional |
judge_config | body | object | null | Optional |
judge_enabled | body | boolean | null | Optional |
judge_prompt_name | body | string | null | Optional |
judge_strategy | body | string | null | Optional |
max_tool_rounds | body | integer | null | Optional |
model_name | body | string | null | Optional |
name | body | string | null | Optional |
outfit | body | classic | studio-jacket | field-vest | null | Optional |
prompt_ref | body | string | null | Optional |
prompt_refs | body | List of string | null | Optional |
prompt_source | body | string | null | Optional |
repository_names | body | List of string | null | Optional |
system_prompt | body | string | null | Optional |
temperature | body | number | null | Optional |
Examples
Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.
import { MaxClient } from "@elmax/api";
const max = new MaxClient({
baseURL: process.env.MAX_API_URL,
apiKey: process.env.MAX_API_KEY,
});
const result = await max.api.putV1AgentsAgentId({
"path": {
"agent_id": "agt_example"
},
"body": {}
});
console.log(result);import os
from elmax_ai import MaxClient
with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
result = max.api.put_v1_agents_agent_id(**{'path': {'agent_id': 'agt_example'}, 'body': {}})
print(result)