Documentation
¶
Index ¶
- Variables
- func CustomTool(ctx context.Context, c client.Client, tool v1.Tool) (toolDefs []gptscript.ToolDef, _ error)
- func IsExternalTool(tool string) bool
- func IsValidEnv(env string) error
- func IsValidImage(image string) error
- func IsValidToolType(toolType types.ToolType) error
- func OAuthAppEnv(ctx context.Context, db kclient.Client, oauthAppNames []string, ...) (extraEnv []string, _ error)
- func ResolveToolReference(ctx context.Context, c kclient.Client, toolRefType types.ToolReferenceType, ...) (string, error)
- type AgentOptions
- type RenderedAgent
- type WorkflowOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidEnv = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$") InvalidEnv = regexp.MustCompile("^(OBOT|GPTSCRIPT|KNOW)") ValidImage = regexp.MustCompile("^[a-zA-Z0-9_][a-zA-Z0-9_.-:/]*$") ValidToolType = regexp.MustCompile("^(container|script|javascript|python)$") )
View Source
var DefaultAgentParams = []string{
"message", "Message to send",
}
Functions ¶
func CustomTool ¶ added in v0.5.0
func IsExternalTool ¶
func IsValidEnv ¶ added in v0.7.1
func IsValidImage ¶ added in v0.7.1
func IsValidToolType ¶ added in v0.7.1
func OAuthAppEnv ¶
Types ¶
type AgentOptions ¶
type RenderedAgent ¶ added in v0.11.0
func Agent ¶
func Agent(ctx context.Context, tokenService *ephemeral.TokenService, mcpSessionManager *mcp.SessionManager, db kclient.Client, agent *v1.Agent, serverURL string, opts AgentOptions) (RenderedAgent, error)
type WorkflowOptions ¶
type WorkflowOptions struct { Step *types.Step ManifestOverride *types.WorkflowManifest Input string }
Click to show internal directories.
Click to hide internal directories.