Documentation
¶
Overview ¶
Package agenttest provides test helpers for pi-core-agent-go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAndCollect ¶
func RunAndCollect(t *testing.T, agent *pi.Agent, prompt string) ([]pi.AgentEvent, pi.PromptResult)
RunAndCollect prompts the agent, drains both channels, and returns all events + the terminal result.
Types ¶
type Opts ¶
type Opts struct {
Provider llm.LLMProvider
Tools []pi.RegisteredTool
Hooks pi.Hooks
SystemPrompt string
Session pi.SessionRepo
}
Opts carries options for NewAgent.
Click to show internal directories.
Click to hide internal directories.