Documentation
¶
Index ¶
- Variables
- func HookFuture[T any](hook Hook[T]) (Hook[T], Future[T])
- func Owls(owl api.Owl, extraOwls ...api.Owl) opts.Option[Parliament]
- func Steps(step ConversationStep, extraSteps ...ConversationStep) opts.Option[Parliament]
- type AsFuture
- type ConversationStep
- type ExecutionContext
- type Future
- type Hook
- type Parliament
- type StructuredOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var WithContextVars = opts.ForName[ExecutionContext, types.ContextVars]("contextVars")
Functions ¶
func Steps ¶ added in v0.1.0
func Steps(step ConversationStep, extraSteps ...ConversationStep) opts.Option[Parliament]
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(owlName string, task string) 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
type Parliament ¶ added in v0.0.19
type Parliament struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.1.0
func New(options ...opts.Option[Parliament]) *Parliament
func (*Parliament) Run ¶ added in v0.1.0
func (p *Parliament) Run(ctx context.Context, rc ExecutionContext) error
type StructuredOutput ¶ added in v0.1.1
type StructuredOutput struct { Name string Description string Schema *jsonschema.Schema }
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
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
|
|
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.