Pular para o conteúdo principal
POST
/
api
/
v1
/
agents
/
{agent_id}
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.agents.update_agent(agent_id="<id>", model="functionary-pt")

    # Handle response
    print(res)
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "model": "functionary-pt",
  "instructions": "<string>",
  "tools": [
    {
      "user_location": {
        "city": "<string>",
        "country": "<string>",
        "region": "<string>",
        "timezone": "<string>"
      },
      "filters": {
        "allowed_domains": [
          "<string>"
        ]
      }
    }
  ],
  "tool_choice": "<string>",
  "parallel_tool_calls": true,
  "max_tool_calls": 123,
  "text": {
    "format": {}
  },
  "reasoning": {},
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mka1.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

agent_id
string
obrigatório

Corpo

application/json
name
string
Required string length: 1 - 120
description
string | null
Maximum string length: 2000
model
string
Minimum string length: 1
Exemplo:

"functionary-pt"

instructions
string | null
Maximum string length: 20000
tools
object[]
tool_choice
parallel_tool_calls
boolean
max_tool_calls
integer | null
Intervalo obrigatório: 1 <= x <= 300
text
object
reasoning
object
metadata
object

Resposta

Agente atualizado.

object
enum<string>
obrigatório
Opções disponíveis:
agent
id
string
obrigatório
name
string
obrigatório
description
string | null
obrigatório
model
string
obrigatório
Exemplo:

"functionary-pt"

instructions
string | null
obrigatório
tools
object[]
obrigatório
tool_choice
obrigatório
parallel_tool_calls
boolean
obrigatório
max_tool_calls
integer | null
obrigatório
text
object
obrigatório
reasoning
object
obrigatório
metadata
object
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
deleted_at
string<date-time> | null
obrigatório