Skip to content

v0.4.0 — Staged process and AgenticLoop

Latest

Choose a tag to compare

@rhgs rhgs released this 17 Aug 20:42
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.

What's new in v0.4.0

All features are backward compatible — no breaking changes.

Staged process

Third orchestration mode: stages run in sequence, while tasks within a single stage run concurrently. The output of each stage feeds the following ones via Task.Context. Stages marked Optional continue on failure.

crew.Process = crewai.Staged
crew.Stages = []crewai.Stage{
    {Name: "collect", Tasks: []*crewai.Task{researchA, researchB}},
    {Name: "synthesize", Tasks: []*crewai.Task{write}},
}

Agentic loop

Optional Plan → Execute → Evaluate → Refine cycle. Opt-in via Agent.Loop or Task.Loop. Supports independent evaluator, pass threshold, skip-plan, and rewrite-only refine.

agent.Loop = crewai.NewAgenticLoop(
    crewai.WithMaxRefinements(3),
    crewai.WithPassThreshold(80),
)

New sentinels

  • ErrNoStages
  • ErrEvaluationFailed
  • ErrInvalidEvaluation

Examples

  • go run ./examples/staged
  • go run ./examples/agentic_loop (offline, mock LLM)

Docs

See CHANGELOG and the bilingual README / docs.

Full changelog: https://github.com/rhgs/crewai-go/blob/v0.4.0/CHANGELOG.md