POST
/
agents
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
agent = client.agents.create(
    name="name",
)
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.

Body

application/json

Response

201 - application/json

Created agent

The response is of type object.