Documentation
¶
Index ¶
- Variables
- func CleanupTurn(turnID string)
- func ConversationIDFromContext(ctx context.Context) string
- func ModelMessageIDFromContext(ctx context.Context) string
- func RequestModeFromContext(ctx context.Context) string
- func SetTurnModelMessageID(turnID, msgID string)
- func SetTurnTrace(turnID, traceID string)
- func ToolMessageIDFromContext(ctx context.Context) string
- func TurnModelMessageID(turnID string) string
- func TurnTrace(turnID string) string
- func WithConversationID(ctx context.Context, conversationID string) context.Context
- func WithModelCompletionMeta(ctx context.Context, meta ModelCompletionMeta) context.Context
- func WithModelMessageID(ctx context.Context, messageID string) context.Context
- func WithRequestMode(ctx context.Context, mode string) context.Context
- func WithRunMeta(ctx context.Context, meta RunMeta) context.Context
- func WithToolMessageID(ctx context.Context, messageID string) context.Context
- func WithTurnMeta(ctx context.Context, meta TurnMeta) context.Context
- type ModelCompletionMeta
- type RunMeta
- type TurnMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var ConversationIDKey = conversationIDKey("conversationID")
View Source
var ModelMessageIDKey = modelMessageIDKey("modelMessageID")
View Source
var ToolMessageIDKey = toolMessageIDKey("toolMessageID")
Functions ¶
func CleanupTurn ¶
func CleanupTurn(turnID string)
func RequestModeFromContext ¶
func SetTurnModelMessageID ¶
func SetTurnModelMessageID(turnID, msgID string)
func SetTurnTrace ¶
func SetTurnTrace(turnID, traceID string)
func TurnModelMessageID ¶
func WithConversationID ¶
func WithModelCompletionMeta ¶
func WithModelCompletionMeta(ctx context.Context, meta ModelCompletionMeta) context.Context
func WithModelMessageID ¶
func WithToolMessageID ¶
Types ¶
type ModelCompletionMeta ¶
type ModelCompletionMeta struct {
Content string
Preamble string
FinalResponse bool
FinishReason string
}
func ModelCompletionMetaFromContext ¶
func ModelCompletionMetaFromContext(ctx context.Context) (ModelCompletionMeta, bool)
Click to show internal directories.
Click to hide internal directories.