项目文件夹

文件
Asim Aslam a503628ef1 flow: add Loop — run a step until done, with a guaranteed ceiling (#3001)
Adds the agentic 'loop' to flows: flow.Loop(body, opts...) is a StepFunc
that runs a body step repeatedly, carrying State across passes, until a
stop condition fires or a hard iteration cap is reached.

- Stop modes: flow.Until (code-defined predicate) and flow.UntilLLM (the
  model judges the goal met after each pass — the supervised 'Ralph'
  loop). Either firing stops the loop.
- flow.LoopMax is the guardrail: the body never runs more than n times, so
  the loop always terminates and can't run up an unbounded bill. Hitting
  the cap returns the latest state rather than erroring.
- flow.OnIteration reports per-pass progress.
- Composes as a normal flow step (checkpointed by the step engine).
- Exposed at the top level as micro.FlowLoop / FlowUntil / FlowUntilLLM /
  FlowLoopMax / FlowOnIteration, symmetric with the other Flow* helpers.

Includes tests, an offline runnable example (examples/flow-loop), an
'Agent Loops' guide, and a CHANGELOG entry.


Claude-Session: https://claude.ai/code/session_01CmdEY7pYmV5zzwCjNJ4ykL

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-23 12:39:17 +01:00

87 行
2.3 KiB
YAML

core:
- title: Overview
url: /docs/
- title: Getting Started
url: /docs/getting-started.html
- title: AI Integration
url: /docs/ai-integration.html
- title: MCP & AI Agents
url: /docs/mcp.html
- title: Deployment
url: /docs/deployment.html
- title: Architecture
url: /docs/architecture.html
- title: Configuration
url: /docs/config.html
- title: Observability
url: /docs/observability.html
interfaces:
- title: Registry
url: /docs/registry.html
- title: Broker
url: /docs/broker.html
- title: Transport
url: /docs/transport.html
- title: Store
url: /docs/store.html
- title: Plugins
url: /docs/plugins.html
examples:
- title: Learn by Example
url: /docs/examples/
- title: Real-World Examples
url: /docs/examples/realworld/
guides:
- title: Agents and Workflows
url: /docs/guides/agents-and-workflows.html
- title: Agent Loops
url: /docs/guides/agent-loops.html
- title: Plan & Delegate
url: /docs/guides/plan-delegate.html
- title: Agent Guardrails
url: /docs/guides/agent-guardrails.html
- title: Payments (x402)
url: /docs/guides/x402-payments.html
- title: Agent2Agent (A2A)
url: /docs/guides/a2a-protocol.html
- title: Atlas Cloud Integration
url: /docs/guides/atlascloud-integration.html
- title: AI Provider Guide
url: /docs/guides/ai-provider-guide.html
- title: Comparison
url: /docs/guides/comparison.html
- title: Migration Guides
url: /docs/guides/migration/
project:
- title: Commercial Support
url: /docs/support.html
- title: ADR Index
url: /docs/architecture/
- title: Contributing
url: /docs/contributing.html
- title: Roadmap
url: /docs/roadmap.html
- title: Get Badge
url: /badge.html
- title: Server (optional)
url: /docs/server.html
search_order:
- /docs/getting-started.html
- /docs/mcp.html
- /docs/architecture.html
- /docs/config.html
- /docs/observability.html
- /docs/registry.html
- /docs/broker.html
- /docs/transport.html
- /docs/store.html
- /docs/plugins.html
- /docs/examples/
- /docs/examples/realworld/
- /docs/guides/comparison.html
- /docs/guides/migration/
- /docs/architecture/
- /docs/contributing.html
- /docs/roadmap.html
- /docs/support.html
- /docs/server.html