Documentation
¶
Index ¶
- func ClaudeTool[Response any](opts Options[Response]) (claudetool.Metadata[Response], error)
- func ClaudeToolForResponse[Response any]() (claudetool.Metadata[Response], error)
- func GoogleTool[Response any](opts Options[Response]) (googletool.Metadata[Response], error)
- func GoogleToolForResponse[Response any]() (googletool.Metadata[Response], error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaudeTool ¶
func ClaudeTool[Response any](opts Options[Response]) (claudetool.Metadata[Response], error)
ClaudeTool constructs the Claude executor metadata for the submit_result tool.
func ClaudeToolForResponse ¶
func ClaudeToolForResponse[Response any]() (claudetool.Metadata[Response], error)
ClaudeToolForResponse constructs the submit_result tool using metadata inferred from the response type annotations.
func GoogleTool ¶
func GoogleTool[Response any](opts Options[Response]) (googletool.Metadata[Response], error)
GoogleTool constructs the Google executor metadata for the submit_result tool.
func GoogleToolForResponse ¶
func GoogleToolForResponse[Response any]() (googletool.Metadata[Response], error)
GoogleToolForResponse constructs the submit_result tool using metadata inferred from the response type annotations.
Types ¶
type Options ¶
type Options[Response any] struct { ToolName string Description string SuccessMessage string PayloadFieldName string PayloadDescription string Generator *schema.Generator }
Options configures the submit_result tool wiring.
func OptionsForResponse ¶
OptionsForResponse returns an Options pre-populated from the annotations present on the response type T. Callers may further customize the returned struct before passing it to ClaudeTool or GoogleTool.
Click to show internal directories.
Click to hide internal directories.