Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConversationIDKey = conversationID("conversationID")
View Source
var ModelMessageIDKey = modelMessageIDKey("modelMessageID")
Functions ¶
func ModelMessageIDFromContext ¶ added in v0.2.0
Types ¶
type EmbedFunc ¶
EmbedFunc defines a function that creates embeddings for given texts. It should return one embedding per input text.
type TurnMeta ¶ added in v0.2.0
type TurnMeta struct {
TurnID string
ConversationID string
ParentMessageID string // last user message id (or tool message when parenting final)
}
TurnMeta captures minimal per-turn context for downstream persistence. Prefer passing a single TurnMeta instead of scattering separate keys.
type UserInteraction ¶
type UserInteraction struct {
URL string `json:"url" yaml:"url"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
}
UserInteraction represents a structured prompt created via the MCP user-interaction feature.
Click to show internal directories.
Click to hide internal directories.