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"
}
Create a new agent
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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Created agent
The response is of type object
.