Documentation
¶
Index ¶
- func NewAPIClient(baseURL string, timeout time.Duration) *api.Client
- func NewAgent(options ...agent.Option) (*agent.Agent, error)
- func NewAgentTaskService(logger logging.Logger) (*task.AgentTaskService, error)
- func NewAgentTaskServiceWithAdapter(logger logging.Logger, service task.AgentAdapterService) *task.AgentTaskService
- func NewTaskAPI(client *api.Client) *api.TaskAPI
- func NewTaskExecutor() *executor.TaskExecutor
- func NewTaskService(logger logging.Logger) interfaces.TaskService
- func WithGuardrails(guardrails interfaces.Guardrails) agent.Option
- func WithLLM(llm interfaces.LLM) agent.Option
- func WithMemory(memory interfaces.Memory) agent.Option
- func WithOrgID(orgID string) agent.Option
- func WithTools(tools ...interfaces.Tool) agent.Option
- func WithTracer(tracer interfaces.Tracer) agent.Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIClient ¶
NewAPIClient creates a new API client for making API calls
func NewAgentTaskService ¶
func NewAgentTaskService(logger logging.Logger) (*task.AgentTaskService, error)
Creates a new agent task service
func NewAgentTaskServiceWithAdapter ¶
func NewAgentTaskServiceWithAdapter(logger logging.Logger, service task.AgentAdapterService) *task.AgentTaskService
Creates a new agent task service with a custom adapter
func NewTaskAPI ¶
NewTaskAPI creates a new task API client
func NewTaskExecutor ¶
func NewTaskExecutor() *executor.TaskExecutor
NewTaskExecutor creates a new task executor
func NewTaskService ¶
func NewTaskService(logger logging.Logger) interfaces.TaskService
NewTaskService creates a new task service with in-memory storage
func WithGuardrails ¶
func WithGuardrails(guardrails interfaces.Guardrails) agent.Option
WithGuardrails sets the guardrails for the agent
func WithMemory ¶
func WithMemory(memory interfaces.Memory) agent.Option
WithMemory sets the memory for the agent
func WithTools ¶
func WithTools(tools ...interfaces.Tool) agent.Option
WithTools sets the tools for the agent
func WithTracer ¶
func WithTracer(tracer interfaces.Tracer) agent.Option
WithTracer sets the tracer for the agent
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.