Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPOption ¶
type HTTPOption func(*HTTPToolRunner)
HTTPOption - Functional options for HTTPToolRunner.
func WithHTTPExtraHeaders ¶
func WithHTTPExtraHeaders(h map[string]string) HTTPOption
WithHTTPExtraHeaders injects/overrides request headers.
func WithHTTPSecrets ¶
func WithHTTPSecrets(s map[string]string) HTTPOption
WithHTTPSecrets provides secrets used in templating (e.g., ${SECRET}).
func WithHTTPTimeoutMS ¶
func WithHTTPTimeoutMS(ms int) HTTPOption
WithHTTPTimeoutMS sets an invocation timeout override (milliseconds).
type HTTPToolRunner ¶
type HTTPToolRunner struct {
// contains filtered or unexported fields
}
HTTPToolRunner executes an HTTPToolImpl. Safe for concurrent use.
func NewHTTPToolRunner ¶
func NewHTTPToolRunner(impl spec.HTTPToolImpl, opts ...HTTPOption) (*HTTPToolRunner, error)
func (*HTTPToolRunner) Run ¶
func (r *HTTPToolRunner) Run( ctx context.Context, inArgs json.RawMessage, ) (outputs []llmtoolsSpec.ToolOutputUnion, metaData map[string]any, err error)
Click to show internal directories.
Click to hide internal directories.