craig

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 11 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

craig implements a Combined ReAct Intelligent aGent, where the agent reasons and acts in a single message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatActionArgsForDisplay

func FormatActionArgsForDisplay(args []agent.ActionArg) string

FormatActionArgsForDisplay formats the new Action.Args structure for display purposes

func New

func New(modelBuilder agent.AgentModelBuilder, opts ...NewOpt) agent.Agent

Types

type NewOpt

type NewOpt func(*agentParams)

func WithFinalAnswerMessage

func WithFinalAnswerMessage(msg string) NewOpt

func WithPersonality

func WithPersonality(personality string) NewOpt

func WithScenarios

func WithScenarios(scenarios map[string]agent.Scenario) NewOpt

func WithSystemPromptTemplate

func WithSystemPromptTemplate(tpl string) NewOpt

func WithTaskPrefix

func WithTaskPrefix(prefix string) NewOpt

func WithTools

func WithTools(tools ...agent.Tool) NewOpt

Jump to

Keyboard shortcuts

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