Skip to main content

ShareGPTMessage

A single message in ShareGPT format with enhanced validation

ShareGPTConversation

A full conversation in ShareGPT format with validation

validate_conversation_flow

Validate the conversation follows logical message order

model_dump

iter

ToolCall

Represents a single tool/function call with validation

validate_arguments

Validate argument structure and content

ToolResponse

Represents a tool/function response with validation. This is a base class and default implementation for tool responses, for the purpose of converting between different formats.

validate_content

Validate response content structure