render

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAgentParams = []string{
	"message", "Message to send",
}

Functions

func Agent

func Agent(ctx context.Context, db kclient.Client, agent *v1.Agent, oauthServerURL string, opts AgentOptions) (_ []gptscript.ToolDef, extraEnv []string, _ error)

func CustomTool added in v0.5.0

func CustomTool(ctx context.Context, c client.Client, tool v1.Tool) (toolDefs []gptscript.ToolDef, _ error)

func IsExternalTool

func IsExternalTool(tool string) bool

func OAuthAppEnv

func OAuthAppEnv(ctx context.Context, db kclient.Client, oauthAppNames []string, namespace, serverURL string) (extraEnv []string, _ error)

func ResolveToolReference

func ResolveToolReference(ctx context.Context, c kclient.Client, toolRefType types.ToolReferenceType, ns, name string) (string, error)

func Thread added in v0.7.0

func Thread(ctx context.Context, db kclient.Client, thread *v1.Thread, oauthServerURL string) (_ []gptscript.ToolDef, extraEnv []string, _ error)

Types

type AgentOptions

type AgentOptions struct {
	Thread *v1.Thread
}

type WorkflowOptions

type WorkflowOptions struct {
	Step             *types.Step
	ManifestOverride *types.WorkflowManifest
	Input            string
}

Jump to

Keyboard shortcuts

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