Download OpenAPI specification:
This is the API used to manage Conversations on a Partite.ai server.
Creates a new conversation, without specifying an initial request or assets. If neither the version_ordinal nor version_label query parameters are provided, the draft version of the mesh will be used.
| mesh_id required | string The ID of the Mesh for which to create a conversation |
| version_ordinal | integer The version number of a mesh version for which to create the conversation |
| version_label | string The version label of a mesh version for which to create the conversation |
{- "conversation_id": "string",
- "intents": [
- {
- "name": "string",
- "description": "string",
- "schema": { },
- "responses": [
- {
- "name": "string",
- "description": "string",
- "schema": { }
}
]
}
]
}Retrieves the list of intents defined on a particular mesh version for which a new conversation can be started.
| mesh_id required | string The ID of the Mesh for which to get intents |
| version_ordinal | integer The version number of a mesh version for which to get intents |
| version_label | string The version label of a mesh version for which to get intents |
{- "intents": [
- {
- "name": "string",
- "description": "string",
- "schema": { },
- "responses": [
- {
- "name": "string",
- "description": "string",
- "schema": { }
}
]
}
]
}Creates a new conversation, specifying an initial request and attachments to start the conversation. If neither the version_ordinal nor version_label query parameters are provided, the draft version of the mesh will be used.
| intent_name required | string The name of the Intent defined on the target mesh which will be used to start the conversation |
| mesh_id required | string The ID of the Mesh for which to create a conversation |
| version_ordinal required | integer The version number of a mesh version for which to create the conversation |
| version_label | string The version label of a mesh version for which to create the conversation |
Information about the initial message and any assets to include with the request to start the conversation.
| property name* additional property | any |
{ }{- "conversation_id": "string",
- "request_id": "string"
}Retrieves the list of intents associated with a particular conversation.
| conversation_id required | string The ID of an existing conversation |
{- "intents": [
- {
- "name": "string",
- "description": "string",
- "schema": { },
- "responses": [
- {
- "name": "string",
- "description": "string",
- "schema": { }
}
]
}
]
}Adds a request specified in JSON to an existing conversation.
| conversation_id required | string The ID of an existing conversation |
| intent_name required | string The name of the Intent defined on the target mesh which will be used for this request |
Information about the initial message and any assets to include with the request to start the conversation.
| property name* additional property | any |
{ }{- "conversation_id": "string",
- "request_id": "string"
}Cancels execution of a previously submitted request. Processing will be stopped at the next checkpoint, and the request will have a cancellation event added to its output.
| conversation_id required | string The ID of an existing conversation |
| request_id required | string The ID of an existing request |
{- "error": "string",
- "parameter": "string"
}Used to submit the results of a task event that previously appeared as an output on the request.
| conversation_id required | string The ID of an existing conversation |
| request_id required | string The ID of an existing request |
| task_id required | string The ID of the task to complete |
Information about the task results
The result of executing the task. The expected format of this value depends on the type of task being executed.
null{- "error": "string",
- "parameter": "string"
}Gets the results of a request, as a stream of events. This allows for real-time updates and progress tracking.
| conversation_id required | string The ID of an existing conversation |
| request_id required | string The ID of an existing request |
| Last-Event-ID | string The ID of the last event received. If provided, the stream will start from the next event after this ID. |
{- "id": "string",
- "type": "task",
- "data": {
- "input": { },
- "task_type": "string"
}
}Gets the final response of a request. This will block until the request is complete.
| conversation_id required | string The ID of an existing conversation |
| request_id required | string The ID of an existing request |
{ }If the request is currently waiting for a task to be completed, this endpoint will return the details of the task. It will block until a task is available or the request completes.
| conversation_id required | string The ID of an existing conversation |
| request_id required | string The ID of an existing request |
{- "task_id": "string",
- "data": {
- "input": { },
- "task_type": "string"
}
}Adds assets to an existing conversation.
| conversation_id required | string The ID of an existing conversation |
Assets to add to the conversation.
| attachments required | Array of strings <binary> [ items <binary > ] Multiple parts, each representing a file upload including a |
{- "attachments": [
- {
- "reference_url": "string",
- "filename": "string"
}
]
}