Documentation
¶
Index ¶
- func FollowUp(ctx context.Context, input *FollowUpToolInput) (string, error)
- func GetFollowUpTool() tool.InvokableTool
- type ApprovalInfo
- type ApprovalResult
- type FollowUpInfo
- type FollowUpState
- type FollowUpToolInput
- type InvokableApprovableTool
- type InvokableReviewEditTool
- type ReviewEditInfo
- type ReviewEditResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFollowUpTool ¶
func GetFollowUpTool() tool.InvokableTool
Types ¶
type ApprovalInfo ¶
func (*ApprovalInfo) String ¶
func (ai *ApprovalInfo) String() string
type ApprovalResult ¶
type FollowUpInfo ¶
type FollowUpInfo struct {
Questions []string
UserAnswer string // This field will be populated by the user.
}
FollowUpInfo is the information presented to the user during an interrupt.
func (*FollowUpInfo) String ¶
func (fi *FollowUpInfo) String() string
type FollowUpState ¶
type FollowUpState struct {
Questions []string
}
FollowUpState is the state saved during the interrupt.
type FollowUpToolInput ¶
type FollowUpToolInput struct {
Questions []string `json:"questions"`
}
FollowUpToolInput defines the input schema for our tool.
type InvokableApprovableTool ¶
type InvokableApprovableTool struct {
tool.InvokableTool
}
func (InvokableApprovableTool) InvokableRun ¶
type InvokableReviewEditTool ¶
type InvokableReviewEditTool struct {
tool.InvokableTool
}
InvokableReviewEditTool is a wrapper that enforces a review-and-edit step.
func (InvokableReviewEditTool) InvokableRun ¶
type ReviewEditInfo ¶
type ReviewEditInfo struct {
ToolName string
ArgumentsInJSON string
ReviewResult *ReviewEditResult
}
ReviewEditInfo is presented to the user for editing.
func (*ReviewEditInfo) String ¶
func (re *ReviewEditInfo) String() string
Directories
¶
| Path | Synopsis |
|---|---|
|
examples/1_chain_summarize
command
|
|
|
examples/2_graph_research
command
|
|
|
examples/3_workflow_order
command
|
|
|
examples/4_nested_interrupt
command
|
Click to show internal directories.
Click to hide internal directories.