Skip to content

fix: preserve LLM delta ordering metadata#271

Merged
mikehostetler merged 1 commit into
agentjido:mainfrom
dannote:fix-llm-delta-sequence-metadata
May 2, 2026
Merged

fix: preserve LLM delta ordering metadata#271
mikehostetler merged 1 commit into
agentjido:mainfrom
dannote:fix-llm-delta-sequence-metadata

Conversation

@dannote
Copy link
Copy Markdown
Contributor

@dannote dannote commented May 1, 2026

Summary

  • add optional ordering/correlation fields to ai.llm.delta
  • propagate runtime seq, run_id, request_id, and iteration from ReAct deltas
  • propagate available worker metadata from ChainOfThought deltas
  • document that consumers should order deltas by seq within a call_id when exact transcript reconstruction matters

Why

Runtime-backed strategies already have ordered runtime events, but derived ai.llm.delta signals dropped that metadata. Consumers receiving deltas out of delivery order could not reconstruct the intended stream.

Tests

  • mix test test/jido_ai/signal_test.exs test/jido_ai/strategy/react_test.exs test/jido_ai/strategy/chain_of_thought_test.exs
  • mix test.fast
  • mix compile --warnings-as-errors

@dannote dannote force-pushed the fix-llm-delta-sequence-metadata branch from 8412f4a to b4a8f0d Compare May 1, 2026 10:43
@mikehostetler mikehostetler merged commit ce9e196 into agentjido:main May 2, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants