Run
Run event detection
Run
Run event detection
Run the analytics pipeline on messages
POST
/
run
/
main
/
messages
Authorization
string
*
Bearer
Authorization
Required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
object
*
Required
object
Process a conversation of messages.
project_id
string
*
project_id
Required
string
The phospho project_id
messages
array
messages
array
Ordered and continuous messages in a single session. Similar to the OpenAI api.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Process a conversation of messages.
The phospho project_id
Response
200 - application/json
The results of a pipeline execution. Contains every category of analytics.
Each category of analytics is a dict linking the message_id or task_id to the analytics object. This is useful for batching and unordered processing.
Events detected in the messages
Available options:
llm_detection
, keyword_detection
, regex_detection
Available options:
task
, session
, task_input_only
, task_output_only
, system_prompt
Available options:
event_detection
, sentiment_language
Available options:
confidence
, range
, category
Available options:
success
, failure
, undefined
Available options:
confidence
, range
, category
Flag of the task: success or failure.
Available options:
success
, failure
Was this page helpful?