training

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This example demonstrates the Training/HITL loop:

  • Crew.Train() runs the crew N iterations collecting feedback
  • Negative feedback (Rating < 0) is persisted and consolidated
  • Consolidated advice is injected into the agent's system prompt on subsequent runs

Prerequisites:

  • An LLM API key (OpenAI or Ollama)

Usage (OpenAI):

OPENAI_API_KEY=sk-... go run main.go

Usage (Ollama):

OLLAMA_BASE_URL=http://localhost:11434 OLLAMA_MODEL=gemma3:4b go run main.go

Jump to

Keyboard shortcuts

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