tool

package
v0.0.326 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvocationDebug = false

Functions

func MakeInvocationNoInjections added in v0.0.103

func MakeInvocationNoInjections(ctx context.Context, env cfg.Context, secrets secrets.GroundedSecrets, r *Definition, props InvokeProps) (compute.Computable[*protocol.ToolResponse], error)

func RegisterInjection

func RegisterInjection[V proto.Message](name string, provider func(context.Context, cfg.Context, runtime.Planner, *schema.Stack_Entry) (V, error))

Types

type Definition

type Definition struct {
	TargetServer schema.PackageName
	Source       Source // Where the invocation was declared.
	Invocation   *invocation.Invocation
}

type InvokeProps

type InvokeProps struct {
	Event          protocol.Lifecycle
	ProvisionInput []*anypb.Any
}

type Source

type Source struct {
	PackageName schema.PackageName
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL