cURL
curl --request POST \ --url https://commerce.driv.ly/api/agents \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "id": "<string>", "prompt": "<string>", "functions": [ "<string>" ] } '
{ "data": { "id": "<string>", "model": "<string>", "prompt": "<string>", "functions": [ "<string>" ] }, "success": true }
The number of levels of related objects to include in the response
Agent has Agent Model
Agent is uniquely identified by id
Agent has Prompt
Agent has Function
Agent Created
Show child attributes
{ "id": "ai_3jks93ndk3s9", "model": "gpt-4o", "prompt": "Respond to the customer service request", "functions": ["fnc_ed904md03684"]}