Documentation
¶
Index ¶
- Variables
- func CleanupTurn(turnID string)
- func CloneUserAsk(dst, src context.Context) context.Context
- func ConversationIDFromContext(ctx context.Context) string
- func InvocationIDFromContext(ctx context.Context) string
- func IsInternalHelperAgentID(agentID string) bool
- func MessageAddEventFromContext(ctx context.Context) bool
- func ModelMessageIDFromContext(ctx context.Context) string
- func NotifyInvocationReturned(ctx context.Context, result InvocationResult) error
- func ObserveInvocation(ctx context.Context, invocation Invocation) (context.Context, error)
- 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, id string) context.Context
- func WithInvocationObserver(ctx context.Context, observer InvocationObserver) 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 Invocation
- type InvocationObserver
- type InvocationObserverFuncs
- type InvocationResult
- type ModelCompletionMeta
- type ResourceReadDispatch
- type ResourceReadRelease
- type RunMeta
- type TurnMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var BeginResourceReadDispatch = shared.BeginResourceReadDispatch
View Source
var BeginResourceReadRelease = shared.BeginResourceReadRelease
View Source
var ConversationIDKey = shared.ConversationIDKey
Conversation identity is shared with the resource client pool. Turn/model lifecycle tracking below remains application-owned.
View Source
var HasResourceReadDispatch = shared.HasResourceReadDispatch
View Source
var ModelMessageIDKey = modelMessageIDKey("modelMessageID")
View Source
var ResolvedResourceFromContext = shared.ResolvedResourceFromContext
View Source
var ResourceDependencyFromContext = shared.ResourceDependencyFromContext
View Source
var ResourceExecutionProofFromContext = shared.ResourceExecutionProofFromContext
View Source
var ResourceReadAssociation = shared.ResourceReadAssociation
View Source
var ToolMessageIDKey = toolMessageIDKey("toolMessageID")
View Source
var UIBridgeSessionIDFromContext = shared.UIBridgeSessionIDFromContext
View Source
var UIWindowIDFromContext = shared.UIWindowIDFromContext
View Source
var WindowParametersFromContext = shared.WindowParametersFromContext
View Source
var WindowReadDecisionActive = shared.WindowReadDecisionActive
View Source
var WindowTargetFromContext = shared.WindowTargetFromContext
View Source
var WithResolvedResource = shared.WithResolvedResource
View Source
var WithResourceDependencies = shared.WithResourceDependencies
View Source
var WithResourceExecutionProof = shared.WithResourceExecutionProof
View Source
var WithResourceReadAssociation = shared.WithResourceReadAssociation
View Source
var WithResourceReadDispatch = shared.WithResourceReadDispatch
View Source
var WithUIBridgeSessionID = shared.WithUIBridgeSessionID
View Source
var WithUIWindowID = shared.WithUIWindowID
View Source
var WithWindowParameters = shared.WithWindowParameters
View Source
var WithWindowReadDecision = shared.WithWindowReadDecision
View Source
var WithWindowTarget = shared.WithWindowTarget
View Source
var WithoutWindowReadDecision = shared.WithoutWindowReadDecision
Functions ¶
func CleanupTurn ¶
func CleanupTurn(turnID string)
func InvocationIDFromContext ¶ added in v0.1.57
func IsInternalHelperAgentID ¶ added in v0.1.57
IsInternalHelperAgentID identifies control-plane agents that must not become the owning agent of an existing main turn or its approval continuation.
func MessageAddEventFromContext ¶ added in v0.1.8
func NotifyInvocationReturned ¶ added in v0.1.57
func NotifyInvocationReturned(ctx context.Context, result InvocationResult) error
func ObserveInvocation ¶ added in v0.1.57
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 WithInvocationObserver ¶ added in v0.1.57
func WithInvocationObserver(ctx context.Context, observer InvocationObserver) context.Context
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 Invocation ¶ added in v0.1.57
type Invocation struct {
Detached bool `json:"detached,omitempty"`
ExecutionMode string `json:"executionMode,omitempty"`
ID string `json:"id,omitempty"`
ConversationID string `json:"conversationId,omitempty"`
TurnID string `json:"turnId,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ParentConversationID string `json:"parentConversationId,omitempty"`
ParentTurnID string `json:"parentTurnId,omitempty"`
ParentToolCallID string `json:"parentToolCallId,omitempty"`
ParentMessageID string `json:"parentMessageId,omitempty"`
ParentInvocationID string `json:"parentInvocationId,omitempty"`
}
Invocation describes a real delegated Query call, not a conversation link. TurnID/ID identify one invocation even when its conversation is reused.
type InvocationObserver ¶ added in v0.1.57
type InvocationObserver interface {
BeforeInvocation(context.Context, Invocation) error
InvocationReturned(context.Context, InvocationResult) error
}
func InvocationObserverFromContext ¶ added in v0.1.57
func InvocationObserverFromContext(ctx context.Context) InvocationObserver
type InvocationObserverFuncs ¶ added in v0.1.57
type InvocationObserverFuncs struct {
Before func(context.Context, Invocation) error
Returned func(context.Context, InvocationResult) error
}
func (InvocationObserverFuncs) BeforeInvocation ¶ added in v0.1.57
func (f InvocationObserverFuncs) BeforeInvocation(ctx context.Context, invocation Invocation) error
func (InvocationObserverFuncs) InvocationReturned ¶ added in v0.1.57
func (f InvocationObserverFuncs) InvocationReturned(ctx context.Context, result InvocationResult) error
type InvocationResult ¶ added in v0.1.57
type InvocationResult struct {
ClientToolCalls []clienttool.PendingCall
ClientToolDependencies []clienttool.Dependency
InterruptIDs []string
Invocation Invocation
NativeStatus string
Content string
Error string
}
type ModelCompletionMeta ¶
type ModelCompletionMeta struct {
Content string
Narration string
FinalResponse bool
FinishReason string
}
func ModelCompletionMetaFromContext ¶
func ModelCompletionMetaFromContext(ctx context.Context) (ModelCompletionMeta, bool)
type ResourceReadDispatch ¶ added in v0.1.57
type ResourceReadDispatch = shared.ResourceReadDispatch
type ResourceReadRelease ¶ added in v0.1.57
type ResourceReadRelease = shared.ResourceReadRelease
Click to show internal directories.
Click to hide internal directories.