Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantContentUpdated ¶
type AssistantContentUpdated struct {
TurnID domain.MessageID // user message ID that started this turn
Message domain.Message
}
AssistantContentUpdated is fired as the assistant message streams in.
type AssistantMessageCreated ¶
AssistantMessageCreated is fired after the assistant message is persisted.
type ConversationCreated ¶
type ConversationCreated struct {
ConversationID domain.ConversationID
}
ConversationCreated is fired when a new conversation is created.
type EndJourneyCompleted ¶
type EndJourneyCompleted struct {
ToolUseID string
Result domaintools.EndJourneyResult
Error error
}
EndJourneyCompleted is fired when an end_journey tool finishes executing.
func (EndJourneyCompleted) GetError ¶
func (m EndJourneyCompleted) GetError() error
func (EndJourneyCompleted) GetResult ¶
func (m EndJourneyCompleted) GetResult() domaintools.Result
func (EndJourneyCompleted) GetToolUseID ¶
func (m EndJourneyCompleted) GetToolUseID() string
type QueryCompleted ¶
type QueryCompleted struct {
ToolUseID string
Result domaintools.QueryResult
Error error
}
QueryCompleted is fired when a query tool finishes executing.
func (QueryCompleted) GetError ¶
func (m QueryCompleted) GetError() error
func (QueryCompleted) GetResult ¶
func (m QueryCompleted) GetResult() domaintools.Result
func (QueryCompleted) GetToolUseID ¶
func (m QueryCompleted) GetToolUseID() string
type RoundStarted ¶
type RoundStarted struct {
RoundID domain.MessageID
ConversationID domain.ConversationID
}
RoundStarted is fired when a new round begins.
type StartJourneyCompleted ¶
type StartJourneyCompleted struct {
ToolUseID string
Result domaintools.StartJourneyResult
Error error
}
StartJourneyCompleted is fired when a start_journey tool finishes executing.
func (StartJourneyCompleted) GetError ¶
func (m StartJourneyCompleted) GetError() error
func (StartJourneyCompleted) GetResult ¶
func (m StartJourneyCompleted) GetResult() domaintools.Result
func (StartJourneyCompleted) GetToolUseID ¶
func (m StartJourneyCompleted) GetToolUseID() string
type StreamCompleted ¶
type StreamCompleted struct {
TurnID domain.MessageID // user message ID that started this turn
Message domain.Message
StopReason string
Title string // AI-generated conversation title, if provided
ContextWindow int // model's max token capacity
InputTokens int // tokens consumed by input this turn
OutputTokens int // tokens generated by output this turn
}
StreamCompleted is fired when the assistant stream finishes.
type ToolCompleted ¶
type ToolCompleted interface {
GetToolUseID() string
GetError() error
GetResult() domaintools.Result
// contains filtered or unexported methods
}
ToolCompleted is the interface for all tool completion messages. The unexported marker method ensures only intentional implementations satisfy it.
type ToolResultsReady ¶
type ToolResultsReady struct {
TurnID domain.MessageID // identifies which turn completed
Results []domaintools.Result // collected tool results
}
ToolResultsReady is fired by a turn when all tool results are collected. This is internal to round - it triggers the next turn in the tool loop.
type TurnStarted ¶
type TurnStarted struct {
UserMessageID domain.MessageID
ConversationID domain.ConversationID
}
TurnStarted is fired when a new turn begins within a round.
type UserSubmittedInput ¶
type UserSubmittedInput struct {
Text string
ToolResults []domaintools.Result
}
UserSubmittedInput is fired when user input is ready (text from input bar or tool results).