82 Commits

Author SHA1 Message Date
Adrian Lyjak 64c0f58f56 Clarify core workflow docs (#700)
The workflows docs had a solid API tour, but several pages taught stale
or partial contracts: custom start events carried runtime objects,
human-in-the-loop examples used older event injection patterns, retry
policy docs omitted the durable jitter seed, and the top-level guide did
not give readers a clear path through events, state, resources,
streaming, validation, and testing.

This tightens the core workflow docs around the contracts users actually
need:

- reshapes the landing guide around event flow, validation, and when to
use typed returns, `list[E]`, `ctx.send_event`, state, and resources
- adds a testing guide for `WorkflowTestRunner`, streamed events, final
results, and context state assertions
- clarifies the boundary between serializable state, durable snapshots,
and injected resources
- updates streaming docs for `WorkflowHandler`, single-consumer streams,
and abnormal workflow termination events
- fixes advanced pages for custom start/stop events, human-in-the-loop
resume, retry policy authoring, workflow drawing, and free-function step
registration
- corrects stale imports and commands for workflow server docs
- moves testing before observability/deployment/client in the sidebar so
readers hit local development guidance before server/client material
2026-06-18 10:20:23 -04:00
Adrian Lyjak 249eaadb5f Make the workflow checkpoint/resume durability story clear (#696) 2026-06-17 20:06:51 -04:00
Adrian Lyjak 48aa8f12d7 Docs: lead the concurrent-execution guide with typed list[E] fan-out/fan-in (#653) 2026-06-17 17:47:04 -04:00
Adrian Lyjak 933661e2bf Regroup the workflows guide sidebar (#693) 2026-06-16 18:40:38 -04:00
Adrian Lyjak abc176e6ce Safeguard push-mode auto-push (#639)
Push-mode updates were too eager: `edit`, `apply`, and `update`
configured the deployment remote before pushing, so any current git repo
could become the source repo by accident.

This keeps create smooth, but makes updates require an existing
`llamaagents-<deployment>` remote before auto-pushing. `--push` is the
explicit escape hatch for linking and pushing the current repo, and
`--no-push` still skips the push entirely.

Docs now describe the safer default for push-mode deployments.
2026-05-14 17:57:50 -04:00
Adrian Lyjak 2497225051 Update llamactl auth command docs (#626) 2026-05-06 18:41:16 -04:00
Adrian Lyjak 4df3a02896 docs: refresh llamactl docs (#619) 2026-05-06 14:17:53 -04:00
Adrian Lyjak 87ef930f8a Add env var based auth to llamactl (#615) 2026-05-03 14:10:08 -04:00
Adrian Lyjak 2cc9fae570 add @catch_error handler + Context.retry_info() (#554) 2026-04-23 19:25:50 +00:00
Adrian Lyjak 7222dff154 docs(agent-data): use client.beta.agent_data.create() (#555)
SDK switched the create method from agent_data to create. The old name is
a deprecated alias, but new examples should use create.
2026-04-17 18:35:01 +00:00
Adrian Lyjak facbac4c0e feat: PUBLIC_* env overlay for UI builds + network policy knobs (#551) 2026-04-16 13:24:29 -04:00
Adrian Lyjak d9fd0d3afd docs: update run-llama/workflows-py references to run-llama/llama-agents (#537)
Repo has been renamed from workflows-py to llama-agents. Update remaining
references in README, docs, CI workflows, and example notebooks.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-14 22:45:47 +00:00
Vasudev Awatramani 2592c8079c feat: Retry Policy (#482) 2026-04-14 14:55:19 -04:00
Adrian Lyjak 021096815c fix docs build crash (#488) 2026-04-07 10:04:37 -04:00
Adrian Lyjak 48c9847325 Consolidate Agent Data documentation into overview page (#466) 2026-04-03 18:14:10 -04:00
sasmita016 d937a72864 docs: fix typo in llamaagents workflows docs (#450) 2026-03-29 02:12:14 +00:00
Adrian Lyjak 725747bb19 Add better install docs (#448) 2026-03-25 17:37:28 +00:00
Adrian Lyjak 48dba9a04a rename llama agents (#439) 2026-03-19 07:36:46 -04:00
Adrian Lyjak 706b5a9afa Normalize line endings to LF and add .gitattributes (#436)
Add .gitattributes with `* text=auto eol=lf` to enforce Unix-style
line endings and renormalize 11 files that had CRLF endings.
2026-03-18 11:31:07 -04:00
Adrian Lyjak b32ec53ef9 Drop python 3.9 support (#434) 2026-03-17 19:53:33 -04:00
Logan ad809c5f92 remove old docs files (#429) 2026-03-16 21:19:07 -06:00
Vasudev Awatramani 9f263149be feat: add ExponentialBackoffRetryPolicy for retry steps (#412) 2026-03-09 15:31:30 -04:00
Adrian Lyjak 23ae70d2ae Update DBOSRuntime usage example to use async/await pattern (#407) 2026-03-04 16:30:56 -05:00
Adrian Lyjak e2b2c82ca9 docs: add DBOS durable execution guide (#393) 2026-03-03 13:46:09 -05:00
llama-org-ci-bot[bot] 7222a7454b chore: version packages (#402)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
2026-02-27 19:01:59 -05:00
Adrian Lyjak 62ffc15b28 Docs improvements (#385) 2026-02-27 17:02:02 -05:00
Tuana Çelik 7037a8e151 adding more context to the landing (#401) 2026-02-27 06:58:08 -06:00
Tuana Çelik ff9daec115 Agent Docs Updates (#387) 2026-02-20 22:44:10 +01:00
Vincent Koc 5a923ae965 Add Opik to observability docs (#366)
* Add Opik observability docs via OpenTelemetry

* Update README.md
2026-02-11 12:20:33 -05:00
Logan 6e6b11314b fix agent data links in docs (#344) 2026-02-08 22:49:44 -06:00
Adrian Lyjak 6d70056da4 docs: clarify that Agent Builder changes require explicit redeployment (#321)
Add documentation explaining that changes made during Agent Builder sessions
don't automatically update existing deployments. Users must explicitly push
changes to GitHub and redeploy to update their production workflow. This
enables safe experimentation without affecting stable deployments.

https://claude.ai/code/session_01Rok9AU8XDhhgH1x3FhbhGg

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-03 09:16:28 -05:00
Adrian Lyjak db90f89b74 Separate server/client, and move to llama_agents namespace (#277)
* prep packages

* wrong coverage detection I think

* add ts deps?

* extend path for namespaces

* the big move, import issues though

* llama_index.workflows

* llama_agents

* alias may be working

* add type checker ignores for workflows secondary namespace, update ty, and add re-exports

* Add descriptions to new client and server packages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Rather, commit the outputs

* keep the py files separate

* ignore examples deps

* Create afraid-books-own.md

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:16:02 -05:00
Adrian Lyjak 2d5974de0c Add agent builder docs, add resource config docs, re-organize wf docs with more explicit cloud docs section (#305) 2026-01-28 12:45:04 -05:00
Adrian Lyjak bc94ae31d5 Add documentation for handling blocking code in workflows (#310)
* docs: add guide for handling blocking code in workflows

Workflows run on asyncio, so blocking calls in steps stall the entire
event loop. This new page documents best practices:
- Offload blocking I/O to threads with asyncio.to_thread
- Offload CPU-intensive work to a small dedicated thread/process pool
  using loop.run_in_executor

https://claude.ai/code/session_018DdW3KPH2nt1FbWECt1uKF

* reframe to async

* docs: link to async Python overview from async workflows guide

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-27 13:04:13 -05:00
Adrian Lyjak 11b9c37007 docs: fix missing imports, typos and syntax errors in workflow docs (#290)
- managing_state.md: Add missing Context import, fix state variable name
  typo (state -> ctx_state), fix workflow variable name (w -> workflow)
- concurrent_execution.md: Add missing random import in two code examples
- resources.md: Add missing imports for Workflow, step, Event, StartEvent,
  StopEvent
- human_in_the_loop.md: Add missing imports for Workflow, step, StartEvent,
  StopEvent and Context
- durable_workflows.md: Fix sync function to async (def -> async def) in two
  examples that use await, fix variable typo (converted_id -> converted_ids)
- customizing_entry_exit_points.md: Fix missing ev. prefix on a_string_field,
  add missing keyword argument (critique=) in MyStopEvent constructor
- retry_steps.md: Add missing imports for Workflow, Context, step, StartEvent,
  StopEvent and Optional
- unbound_functions.md: Add missing imports for Workflow, step, StartEvent,
  StopEvent
- drawing.md: Add missing WorkflowServer import
- deployment.md: Add missing asyncio import, fix missing colon after async def
  main(), fix typo in import path (workflow.client -> workflows.client),
  fix missing colon in if statement

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-19 15:04:28 -05:00
Mohammad Reza Badri 9d4c50d610 docs: add missing random imports in concurrency examples (#289) 2026-01-19 14:47:55 -05:00
Mohammad Reza Badri 6dae3fc181 docs: fix streamed response handling in streaming events example (#288) 2026-01-19 13:17:14 -05:00
Adrian Lyjak 7d982d4a93 docs: document wait_for_event in human-in-the-loop guide (#280)
Add brief documentation for ctx.wait_for_event() as an alternative
approach for human-in-the-loop patterns. Clarifies the replay behavior
and idempotency requirements, and recommends the event-based approach
due to its complexity.

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-14 12:02:16 -05:00
Adrian Lyjak f96faa2d03 feat: add dedicated StopEvent subclasses for workflow termination scenarios (#264)
* feat: add dedicated StopEvent subclasses for workflow termination scenarios

Add WorkflowTerminationEvent base class and specific subclasses to provide
detailed information when workflows end abnormally:

- WorkflowTimedOutEvent: Published when workflow exceeds timeout, includes
  timeout duration and list of active steps
- WorkflowCancelledEvent: Published when workflow is cancelled by user
- WorkflowFailedEvent: Published when a step fails permanently, includes
  step name, exception type, and exception message

These events replace the empty StopEvent() instances that were previously
published, allowing consumers to understand why a workflow ended and take
appropriate action.

Closes: issue about providing exception information in StopEvent

* refactor: simplify termination events to inherit directly from StopEvent

* chore: add changeset

* feat: add traceback and fully qualified exception type to WorkflowFailedEvent

* feat: add retry info (attempts, elapsed_seconds) to WorkflowFailedEvent

Also fixes a bug where step_function.py used time.monotonic() instead of
time.time(), causing incompatible timestamps with first_attempt_at.

* fix lints/locks

* docs: add workflow termination events to streaming docs

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-10 13:03:49 -05:00
Logan 6482623510 collapse (#270) 2026-01-08 12:06:12 -06:00
Tuana Çelik a154163ce7 Clarify description of agent templates (#255) 2025-12-29 10:43:51 -06:00
Tuana Çelik 00ca7df522 Adding agent template docs (#254)
* adding template docs

* attempting pre-commit hook lint
2025-12-29 16:14:19 +00:00
Adrian Lyjak 8e84276cd0 Increase minimum llama-index-workflows version (#248) 2025-12-17 16:01:02 -05:00
Adrian Lyjak b33e89ceaf Update agents / workflows getting started (#241) 2025-12-03 08:45:09 -05:00
Adrian Lyjak 92ee0787a9 Update llamactl disclaimers to beta (#239) 2025-12-01 11:12:39 -05:00
Logan 11e39a09f5 merge all workflows docs into a single place (#234) 2025-11-20 21:08:39 -06:00
Adrian Lyjak 5464e80141 Fix publish scripts (#218) 2025-11-17 16:17:33 -05:00
Adrian Lyjak 6a83541b64 fix docs build (#210)
* fix: fix docs build

* adjust requirements to 3.9 for docs
2025-11-17 14:19:42 -06:00
Adrian Lyjak 822441d031 Catch up the agent data docs (#195) 2025-11-05 15:28:34 -05:00
Adrian Lyjak bf42f8126c Clean up links (#193) 2025-11-04 11:51:08 -05:00