Create Agent
Create Agent
Create an agent with the given configuration.
Parameters:
Name |
Type |
Description |
Default |
request_body |
dict
|
JSON body containing agent details.
|
required
|
Returns:
Name | Type |
Description |
dict |
Dict[str, Any]
|
JSON response from the server, typically including agent_id and status.
|
Sample usage:
from anoteai import Anote
api_key = 'INSERT_API_KEY_HERE'
anote = Anote(api_key=api_key)
request_body = {
"type": "WebSurferAgent",
"config": {
"search_criteria": {
"role": "Data Scientist",
"location": "San Francisco"
}
}
}
response = anote.create_agent(request_body)
print(response)
Response (JSON):
{
"agent_id": 123,
"status": "created",
"type": "WebSurferAgent",
"config": {
"search_criteria": {
"role": "Data Scientist",
"location": "San Francisco"
}
}
}