Skip to content

feat: refactor agent run/stream handles for Temporal Workflow Streams and crash recovery - #54

Merged
vinodvx merged 1 commit into
mainfrom
feat/agent-run-stream-handles
Jul 26, 2026
Merged

feat: refactor agent run/stream handles for Temporal Workflow Streams and crash recovery#54
vinodvx merged 1 commit into
mainfrom
feat/agent-run-stream-handles

Conversation

@vinodvx

@vinodvx vinodvx commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Description

Refactor agent run/stream handles for Temporal Workflow Streams and crash recovery.

  • Run / Stream return AgentRun / AgentStream handles (Get, Done, Status, Cancel, Events)
  • Remove RunAsync / AgentRunAsyncResult; stream options move to AgentStreamOptions
  • Temporal: durable Workflow Streams on AgentWorkflow (replaces separate event workflow); drop EnableRemoteWorkers()
  • Crash recovery via GetAgentRun / GetAgentStream + WithOffset (Temporal); LocalRuntime fails fast with ErrRunNotFound / ErrStreamNotFound
  • Conversation constructors: NewConversation only (NewInMemoryConversation / NewRedisConversation removed)

Test plan

  • Blocking Run + Get
  • Non-blocking Run (Done / Status / Cancel)
  • Stream + Events
  • Temporal reconnect: GetAgentRun / GetAgentStream + WithOffset
  • LocalRuntime reconnect returns not-found errors
  • Examples and docs build / run for touched paths

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor / chore

Related issues

close #53

Checklist

  • I have run task check
  • I have run task examples:all
  • I have run task tidy if I added or removed dependencies
  • Commit messages follow conventional commits (e.g. feat:, fix:, docs:)
  • I have added/updated tests for my changes
  • Documentation is updated if needed

@mintlify

mintlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
agent-sdk-go 🟢 Ready View Preview Jul 26, 2026, 7:42 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@vinodvx vinodvx changed the title feat: refactor agent run/stream handles for Temporal Workflow Streamsand crash recovery feat: refactor agent run/stream handles for Temporal Workflow Streams and crash recovery Jul 26, 2026
@vinodvx
vinodvx merged commit de5a33a into main Jul 26, 2026
6 checks passed
@vinodvx
vinodvx deleted the feat/agent-run-stream-handles branch July 26, 2026 07:53
@mintlify

mintlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
agent-sdk-go 🟡 Building Jul 26, 2026, 7:41 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

[Feature]: Refactor agent run/stream handles for Temporal Workflow Streams and crash recovery

1 participant