agents

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentChat              = "chat"
	AgentReact             = "react"
	AgentRepoReviewComment = "repo-review-comment"
	AgentNewsSummary       = "news-summary"
	AgentBillClassify      = "bill-classify"
	AgentExtractTags       = "extract-tags"
	AgentSimilarTags       = "similar-tags"
)
View Source
const (
	ProviderOpenAI           = "openai"
	ProviderOpenAICompatible = "openai-compatible"
	ProviderOllama           = "ollama"
)

Variables

This section is empty.

Functions

func AgentEnabled added in v0.31.1

func AgentEnabled(name string) bool

func AgentModelName added in v0.31.1

func AgentModelName(name string) string

func BaseTemplate added in v0.28.12

func BaseTemplate() prompt.ChatTemplate

func ChatModel

func ChatModel(ctx context.Context, modelName string) (model.ToolCallingChatModel, error)

func CountMessageTokens added in v0.28.11

func CountMessageTokens(messages []*schema.Message) (int, error)

func CountToken added in v0.28.11

func CountToken(text string) int

func DefaultMultiChatTemplate added in v0.27.1

func DefaultMultiChatTemplate() prompt.ChatTemplate

func DefaultTemplate

func DefaultTemplate() prompt.ChatTemplate

func GetModel added in v0.31.1

func GetModel(modelName string) config.Model

func LLMGenerate added in v0.28.1

func LLMGenerate(ctx context.Context, modelName, prompt string) (string, error)

func ReactAgent

func ReactAgent(ctx context.Context, modelName string, tools []tool.BaseTool) (*react.Agent, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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