Documentation
¶
Index ¶
- func ApplyDecisionPatch(args map[string]interface{}, patch map[string]interface{}) error
- func ApplyEdits(args map[string]interface{}, editors []*EditorView, ...) error
- func ApplyReview(args map[string]interface{}, review *llm.ApprovalReviewConfig, ...) error
- func ExtractEditedFields(payload map[string]interface{}) map[string]interface{}
- func WithElicitor(ctx context.Context, e Elicitor) context.Context
- type EditorView
- type Elicitor
- type OptionView
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDecisionPatch ¶ added in v0.1.10
func ApplyEdits ¶
func ApplyEdits(args map[string]interface{}, editors []*EditorView, editedFields map[string]interface{}) error
func ApplyReview ¶ added in v0.1.9
func ApplyReview(args map[string]interface{}, review *llm.ApprovalReviewConfig, payload map[string]interface{}) error
func ExtractEditedFields ¶
Types ¶
type EditorView ¶
type Elicitor ¶
type Elicitor interface {
ElicitToolApproval(ctx context.Context, turn *runtimerequestctx.TurnMeta, toolName string, cfg *llm.ApprovalConfig, args map[string]interface{}) (action string, payload map[string]interface{}, err error)
}
Elicitor creates an inline approval prompt for a tool call and waits for the user's decision. It returns the normalized action string: accept, decline, or cancel.
func ElicitorFromContext ¶
type OptionView ¶
type View ¶
type View struct {
ToolName string `json:"toolName"`
Title string `json:"title"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
Editors []*EditorView `json:"editors,omitempty"`
Forge *llm.ApprovalForgeView `json:"forge,omitempty"`
Decisions map[string]*llm.ApprovalDecisionAction `json:"decisions,omitempty"`
}
View is the canonical view model built from a tool call request and its approval config.
Click to show internal directories.
Click to hide internal directories.