Through the Witty API, you will be able to interact with essential parts of the Witty module.
Retrieve a list of all agents in the Agents Catalog.
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "endpoint": "string",
- "payload": { },
- "need_authentication": true,
- "active": true
}
]Create a new agent.
| name required | string |
| description required | string |
| endpoint required | string |
| need_authentication required | boolean |
| payload required | object |
| active | boolean |
{- "name": "string",
- "description": "string",
- "endpoint": "string",
- "need_authentication": true,
- "payload": { },
- "active": true
}Get agent by ID
| id required | string <uuid> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "endpoint": "string",
- "payload": { },
- "need_authentication": true,
- "active": true
}Update agent by ID. You can edit a single field or multiple fields.
| id required | string <uuid> |
| name | string |
| description | string |
| endpoint | string |
| need_authentication | boolean |
| payload | object |
| active | boolean |
{- "name": "string",
- "description": "string",
- "endpoint": "string",
- "need_authentication": true,
- "payload": { },
- "active": true
}Create a task for the witty in a natual language.
| message required | string |
| session_id | string |
{- "message": "string",
- "session_id": "string"
}{- "message": "string",
- "session_id": "string",
- "result": "success",
- "error_message": "string"
}Retrieve all session IDs for the authenticated user.
{- "user_id": "string",
- "sessions": [
- {
- "user_id": "string",
- "session_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "last_activity": "2019-08-24T14:15:22Z"
}
], - "result": "string"
}Retrieve all session IDs for a given user ID.
| user_id required | string |
{- "user_id": "string",
- "sessions": [
- {
- "user_id": "string",
- "session_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "last_activity": "2019-08-24T14:15:22Z"
}
], - "result": "string"
}Update the title of a session by session ID.
| session_id required | string |
| title required | string |
{- "title": "string"
}{- "user_id": "string",
- "session_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "last_activity": "2019-08-24T14:15:22Z"
}Set LLM configuration
| provider | string |
| endpoint | string |
| api_key | string |
| deployment | string |
| api_version | string |
| model | string |
| custom_header | string |
{- "provider": "string",
- "endpoint": "string",
- "api_key": "string",
- "deployment": "string",
- "api_version": "string",
- "model": "string",
- "custom_header": "string"
}Get the current embedder configuration
{- "provider": "string",
- "endpoint": "string",
- "api_key": "string",
- "deployment": "string",
- "api_version": "string",
- "model": "string",
- "custom_header": "string"
}Set embedder configuration
| provider | string |
| endpoint | string |
| api_key | string |
| deployment | string |
| api_version | string |
| model | string |
| custom_header | string |
{- "provider": "string",
- "endpoint": "string",
- "api_key": "string",
- "deployment": "string",
- "api_version": "string",
- "model": "string",
- "custom_header": "string"
}