api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	Name() string
	Provider() provider.Provider
}

type Owl

type Owl interface {
	// Name returns the agent's name
	Name() string

	// Model returns the agent's model
	Model() Model

	// Tools returns the agent's function definitions
	Tools() []tool.Definition

	// ParallelToolCalls returns whether the agent supports parallel tool calls
	ParallelToolCalls() bool

	// RenderInstructions renders the agent's instructions with the provided context variables.
	RenderInstructions(types.ContextVars) (string, error)
}

Owl represents an interface for an agent with various capabilities. It provides methods to retrieve the agent's name, model, instructions, function definitions, tool choice, and whether it supports parallel tool calls. available functions, tool choice, and whether parallel tool calls are supported.

type RunResult added in v0.1.0

type RunResult[T any] struct {
	Success T
	Err     error
}

func (RunResult[T]) IsError added in v0.1.0

func (r RunResult[T]) IsError() bool

func (RunResult[T]) IsSuccess added in v0.1.0

func (r RunResult[T]) IsSuccess() bool

Jump to

Keyboard shortcuts

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