Core data types and models used in the Praxos Python SDK
Message
class is used for conversation sources and chat-based interactions. It provides a structured way to represent messages with roles, content, and timestamps.
Property | Type | Description |
---|---|---|
content | string | The content/text of the message (required) |
role | string | The role of the message sender (optional) |
timestamp | datetime | When the message was created (auto-generated) |
Context
class represents search results and contextual information returned from environment search operations. It contains the search score, data, and generated sentence for each result.
Property | Type | Description |
---|---|---|
score | float | Relevance score for the search result |
data | dict | Raw data associated with the result |
sentence | string | Human-readable sentence describing the result |