agent_with_workflows

command
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

agent_with_workflows demonstrates deterministic workflow execution inside an agent.

The goal: the LLM routes user intent to a named procedure; the procedure runs step-by-step in an orchestration engine (validate → execute → return result). Steps, retries, and ordering are defined by the engine — not improvised by the LLM.

workflow_tool.go — WorkflowTool and WorkflowRunner interface (engine-agnostic) inprocess_runner.go — default runner (no infrastructure required) temporal_runner.go — sample Temporal runner; activate with ORCHESTRATION_ENGINE=temporal

Run (in-process, no infra needed):

go run ./agent_with_workflows "Run the onboarding workflow for Alice"

Run (Temporal engine):

task infra:temporal:up && task infra:temporal:wait
ORCHESTRATION_ENGINE=temporal go run ./agent_with_workflows "Run the onboarding workflow for Alice"

Package main — sample WorkflowRunner backed by Temporal.

This file is the Temporal-specific orchestration layer for the agent_with_workflows example. It satisfies the WorkflowRunner interface defined in workflow_tool.go.

To use a different engine (Conductor, Argo Workflows, Step Functions, in-process), add a sibling file (e.g. conductor_runner.go) implementing WorkflowRunner and wire it in main.go instead of NewTemporalRunner.

Package main implements a WorkflowTool that lets the LLM invoke deterministic user-defined workflows inside an agent run. The tool contract (name, parameters, WorkflowRunner interface) is engine-agnostic — execution is handled by whatever WorkflowRunner is wired in main.go (see temporal_runner.go for a Temporal sample).

Jump to

Keyboard shortcuts

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