modules

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StaticMemoryProvider

func StaticMemoryProvider(mem *memory.SessionMemory) kit.MemoryProvider

StaticMemoryProvider returns a provider that always yields the supplied session memory instance.

func StaticModelProvider

func StaticModelProvider(model models.Agent) kit.ModelProvider

StaticModelProvider returns a provider that always yields the supplied model.

func StaticSubAgentProvider

func StaticSubAgentProvider(subAgents []agent.SubAgent, directory agent.SubAgentDirectory) kit.SubAgentProvider

StaticSubAgentProvider wraps a fixed set of sub-agents and optional directory.

func StaticToolProvider

func StaticToolProvider(tools []agent.Tool, catalog agent.ToolCatalog) kit.ToolProvider

StaticToolProvider wraps a fixed tool slice and optional catalog into a provider implementation.

Types

type MemoryModule

type MemoryModule struct {
	// contains filtered or unexported fields
}

MemoryModule registers a session memory provider with the kit.

func InMemoryMemoryModule

func InMemoryMemoryModule(window int, embeeder memory.Embedder, opts *memory.Options) *MemoryModule

InMemoryMemoryModule constructs a memory module backed by the in-memory store. The underlying bank is initialised once and reused so agents built from the same kit share memories and collaborative spaces.

func InMongoMemory added in v0.6.4

func InMongoMemory(ctx context.Context, window int, uri, database, collection string, embeeder memory.Embedder, opts *memory.Options) *MemoryModule

func InNeo4jMemory added in v0.6.4

func InNeo4jMemory(ctx context.Context, window int, factory func(context.Context) (*memory.Neo4jStore, error), embeeder memory.Embedder, opts *memory.Options) *MemoryModule

func InPostgresMemory

func InPostgresMemory(ctx context.Context, window int, connStr string, embeeder memory.Embedder, opts *memory.Options) *MemoryModule

func InQdrantMemory

func InQdrantMemory(window int, baseURL string, collection string, embeeder memory.Embedder, opts *memory.Options) *MemoryModule

func NewMemoryModule

func NewMemoryModule(name string, provider adk.MemoryProvider) *MemoryModule

NewMemoryModule creates a memory module with the supplied provider. If name is empty the module is registered as "memory".

func (*MemoryModule) Name

func (m *MemoryModule) Name() string

func (*MemoryModule) Provision

func (m *MemoryModule) Provision(_ context.Context, kitInstance *adk.AgentDevelopmentKit) error

type ModelModule

type ModelModule struct {
	// contains filtered or unexported fields
}

ModelModule wires a model provider into the kit.

func NewModelModule

func NewModelModule(name string, provider adk.ModelProvider) *ModelModule

NewModelModule creates a module that registers the supplied model provider. If name is empty the module will expose "model".

func (*ModelModule) Name

func (m *ModelModule) Name() string

func (*ModelModule) Provision

func (m *ModelModule) Provision(_ context.Context, kitInstance *adk.AgentDevelopmentKit) error

type SubAgentModule

type SubAgentModule struct {
	// contains filtered or unexported fields
}

SubAgentModule registers a sub-agent provider with the kit.

func NewSubAgentModule

func NewSubAgentModule(name string, provider adk.SubAgentProvider) *SubAgentModule

NewSubAgentModule creates a sub-agent module. If name is empty the module is registered as "subagents".

func (*SubAgentModule) Name

func (m *SubAgentModule) Name() string

func (*SubAgentModule) Provision

func (m *SubAgentModule) Provision(_ context.Context, kitInstance *adk.AgentDevelopmentKit) error

type ToolModule

type ToolModule struct {
	// contains filtered or unexported fields
}

ToolModule registers a tool provider with the kit.

func NewToolModule

func NewToolModule(name string, provider adk.ToolProvider) *ToolModule

NewToolModule constructs a tool module. If name is empty it defaults to "tools". When registering multiple tool modules provide distinct names to preserve ordering in diagnostics.

func (*ToolModule) Name

func (m *ToolModule) Name() string

func (*ToolModule) Provision

func (m *ToolModule) Provision(_ context.Context, kitInstance *adk.AgentDevelopmentKit) error

Jump to

Keyboard shortcuts

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