PATCH
/
agents
/
{agent_id}
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
agent = client.agents.update(
    agent_id="agent_id",
)
print(agent.id)
{
  "system_prompt": "<string>",
  "agent_model": "magpie-1",
  "llm_model": "gemini-1.5-flash-001",
  "knowledge_ids": [
    "<string>"
  ],
  "agent_tools": [
    "data_analysis"
  ],
  "disabled_agent_tools": [
    "data_analysis"
  ],
  "custom_prompt": "<string>",
  "planning_prompt": "<string>",
  "object": "agent",
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

The ID of the agent to update

Body

application/json

Response

200
application/json

Updated agent

The response is of type object.