Documentation
¶
Index ¶
- Variables
- func Agents(agent api.Agent, extraAgents ...api.Agent) opts.Option[Knot]
- func Steps(step ConversationStep, extraSteps ...ConversationStep) opts.Option[Knot]
- func StructuredOutput[T any](name, description string) opts.Option[ExecutionContext]
- type ConversationStep
- type ExecutionContext
- type Future
- type Hook
- type Knot
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithContextVars = opts.ForName[ExecutionContext, types.ContextVars]("contextVars") Streaming = opts.ForName[ExecutionContext, bool]("stream") WithMaxTurns = opts.ForName[ExecutionContext, int]("maxTurns") )
View Source
var Name = opts.ForName[Knot, string]("name")
Functions ¶
func Steps ¶ added in v0.1.0
func Steps(step ConversationStep, extraSteps ...ConversationStep) opts.Option[Knot]
func StructuredOutput ¶ added in v0.1.1
func StructuredOutput[T any](name, description string) opts.Option[ExecutionContext]
Types ¶
type ConversationStep ¶ added in v0.1.0
type ConversationStep struct {
// contains filtered or unexported fields
}
func Step ¶ added in v0.1.0
func Step[T Task](agentName string, tsk T) ConversationStep
type ExecutionContext ¶ added in v0.1.0
type ExecutionContext struct {
// contains filtered or unexported fields
}
func Local ¶ added in v0.1.0
func Local[T any](hook Hook[T], options ...opts.Option[ExecutionContext]) ExecutionContext
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bubo-tool-gen
command
|
|
|
Package events provides a pub/sub event system for AI agent interactions, supporting type-safe event handling with rich metadata and serialization.
|
Package events provides a pub/sub event system for AI agent interactions, supporting type-safe event handling with rich metadata and serialization. |
|
examples
|
|
|
basic/agent-handoff
command
|
|
|
basic/context-variables
command
|
|
|
basic/function-calling
command
|
|
|
basic/minimal
command
|
|
|
basic/structured-output
command
|
|
|
temporal/minimal
command
|
|
|
triage
command
|
|
|
internal
|
|
|
broker
Package broker implements a pub/sub message broker for distributing events between AI agents, tools, and other system components.
|
Package broker implements a pub/sub message broker for distributing events between AI agents, tools, and other system components. |
|
executor
Package executor provides the core execution engine for AI agent operations, implementing a robust system for running commands with support for streaming, tool calls, and asynchronous operations through a Future/Promise pattern.
|
Package executor provides the core execution engine for AI agent operations, implementing a robust system for running commands with support for streaming, tool calls, and asynchronous operations through a Future/Promise pattern. |
|
shorttermmemory
Package shorttermmemory provides functionality for managing the runtime state of message processing, including message aggregation, forking, and joining of message streams, as well as usage tracking.
|
Package shorttermmemory provides functionality for managing the runtime state of message processing, including message aggregation, forking, and joining of message streams, as well as usage tracking. |
|
Package messages provides types and functionality for handling multi-part message content in different formats including text, images, and audio.
|
Package messages provides types and functionality for handling multi-part message content in different formats including text, images, and audio. |
|
pkg
|
|
|
Package provider implements an abstraction layer for interacting with AI model providers (like OpenAI, Anthropic, etc.) in a consistent way.
|
Package provider implements an abstraction layer for interacting with AI model providers (like OpenAI, Anthropic, etc.) in a consistent way. |
Click to show internal directories.
Click to hide internal directories.