max developers SDK 0.4.0
API reference

Update Agent

PUT /v1/agents/{agent_id}

This operation can change data. Use resources you control.

Request fields

FieldLocationTypeRequired
agent_idpathstringRequired
algorithm_idbodystring | nullOptional
allowed_toolsbodyList of string | nullOptional
api_key_idbodystring | nullOptional
api_key_namebodystring | nullOptional
catalog_starter_promptsbodyList of CatalogStarterPromptInput | nullOptional
catalog_usage_guidancebodystring | nullOptional
categorybodystring | nullOptional
clear_algorithm_idbodyboolean | nullOptional
clear_temperaturebodyboolean | nullOptional
descriptionbodystring | nullOptional
judge_configbodyobject | nullOptional
judge_enabledbodyboolean | nullOptional
judge_prompt_namebodystring | nullOptional
judge_strategybodystring | nullOptional
max_tool_roundsbodyinteger | nullOptional
model_namebodystring | nullOptional
namebodystring | nullOptional
outfitbodyclassic | studio-jacket | field-vest | nullOptional
prompt_refbodystring | nullOptional
prompt_refsbodyList of string | nullOptional
prompt_sourcebodystring | nullOptional
repository_namesbodyList of string | nullOptional
system_promptbodystring | nullOptional
temperaturebodynumber | nullOptional

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)
Response fields

Errors and recovery