Documentation
¶
Index ¶
- Variables
- func CleanupTurn(turnID string)
- func CloneUserAsk(dst, src context.Context) context.Context
- func ConversationIDFromContext(ctx context.Context) string
- func MessageAddEventFromContext(ctx context.Context) bool
- func ModelMessageIDFromContext(ctx context.Context) string
- func PreferredUIClientIDFromContext(ctx context.Context) string
- func PromptProfileAllowListFromContext(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 ToolResultPreviewLimitFromContext(ctx context.Context) int
- func TurnModelMessageID(turnID string) string
- func TurnTrace(turnID string) string
- func UserAskFromContext(ctx context.Context) string
- func WithConversationID(ctx context.Context, conversationID string) context.Context
- func WithMessageAddEvent(ctx context.Context) context.Context
- func WithModelCompletionMeta(ctx context.Context, meta ModelCompletionMeta) context.Context
- func WithModelMessageID(ctx context.Context, messageID string) context.Context
- func WithPreferredUIClientID(ctx context.Context, clientID string) context.Context
- func WithPromptProfileAllowList(ctx context.Context, ids []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 WithToolResultPreviewLimit(ctx context.Context, limit int) context.Context
- func WithTurnMeta(ctx context.Context, meta TurnMeta) context.Context
- func WithUserAsk(ctx context.Context, ask string) context.Context
- func WithoutConversationTracking(ctx context.Context) 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 MessageAddEventFromContext ¶ added in v0.1.8
func PreferredUIClientIDFromContext ¶ added in v0.1.9
func PromptProfileAllowListFromContext ¶ added in v0.1.8
func RequestModeFromContext ¶
func SetTurnModelMessageID ¶
func SetTurnModelMessageID(turnID, msgID string)
func SetTurnTrace ¶
func SetTurnTrace(turnID, traceID string)
func ToolResultPreviewLimitFromContext ¶ added in v0.1.8
func TurnModelMessageID ¶
func UserAskFromContext ¶ added in v0.1.8
func WithConversationID ¶
func WithMessageAddEvent ¶ added in v0.1.8
func WithModelCompletionMeta ¶
func WithModelCompletionMeta(ctx context.Context, meta ModelCompletionMeta) context.Context
func WithModelMessageID ¶
func WithPreferredUIClientID ¶ added in v0.1.9
func WithPromptProfileAllowList ¶ added in v0.1.8
func WithToolMessageID ¶
func WithToolResultPreviewLimit ¶ added in v0.1.8
func WithUserAsk ¶ added in v0.1.8
func WithoutConversationTracking ¶ added in v0.1.9
WithoutConversationTracking removes conversation / turn-local tracking keys from context for internal sidecar model calls that must not participate in transcript persistence, SSE ownership, or continuation anchoring.
Types ¶
type ModelCompletionMeta ¶
type ModelCompletionMeta struct {
Content string
Narration string
FinalResponse bool
FinishReason string
}
func ModelCompletionMetaFromContext ¶
func ModelCompletionMetaFromContext(ctx context.Context) (ModelCompletionMeta, bool)
Click to show internal directories.
Click to hide internal directories.