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: 0

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