agent

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubAgent

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

SubAgent wraps gollem.SubAgent with additional metadata for the parent agent. It provides a PromptHint that can be collected by the parent agent to include sub-agent specific information (e.g., available BigQuery tables) in its system prompt.

func NewSubAgent

func NewSubAgent(inner *gollem.SubAgent, promptHint string) *SubAgent

NewSubAgent creates a new SubAgent wrapping a gollem.SubAgent with an optional prompt hint.

func (*SubAgent) Inner

func (s *SubAgent) Inner() *gollem.SubAgent

Inner returns the underlying gollem.SubAgent for passing to gollem APIs.

func (*SubAgent) PromptHint

func (s *SubAgent) PromptHint() string

PromptHint returns additional context to be included in the parent agent's system prompt. This helps the parent agent understand what this sub-agent can do and what resources it has access to.

Jump to

Keyboard shortcuts

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