factory

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package factory wires concrete dependencies for the agent-pi binary.

Index

Constants

View Source
const ServiceName = "agent-pi"

ServiceName is the canonical service name for the agent-pi binary.

Variables

This section is empty.

Functions

func CreateAgent

func CreateAgent(
	runner pilib.Runner,
	envContext map[string]string,
) *agentlib.Agent

CreateAgent assembles the 3-phase pi agent from a pre-constructed Runner.

func CreateAgentProvider

func CreateAgentProvider(
	runner pilib.Runner,
	envContext map[string]string,
) agentlib.AgentProvider

CreateAgentProvider wires the per-task-type dispatch table from a pre-constructed Runner so callers control Runner lifecycle.

func CreateFileResultDeliverer

func CreateFileResultDeliverer(filePath string) agentlib.ResultDeliverer

CreateFileResultDeliverer creates a ResultDeliverer that writes the agent's output back to a markdown file.

func CreateKafkaResultDeliverer

func CreateKafkaResultDeliverer(
	syncProducer libkafka.SyncProducer,
	topicPrefix base.TopicPrefix,
	taskID agentlib.TaskIdentifier,
	originalContent string,
	currentDateTime libtime.CurrentDateTimeGetter,
) agentlib.ResultDeliverer

CreateKafkaResultDeliverer creates a ResultDeliverer that publishes task updates to Kafka.

func CreatePiRunner

func CreatePiRunner(
	agentDir string,
	allowedTools string,
	model string,
	env map[string]string,
) pilib.Runner

CreatePiRunner constructs a Pi Runner pre-configured with tools, model, and env.

Types

This section is empty.

Jump to

Keyboard shortcuts

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