Skip to content

feat: add execution config for per-operation timeouts and max attempts and trim down main README - #40

Merged
vinodvx merged 1 commit into
mainfrom
feat/execution-config
Jul 7, 2026
Merged

feat: add execution config for per-operation timeouts and max attempts and trim down main README#40
vinodvx merged 1 commit into
mainfrom
feat/execution-config

Conversation

@vinodvx

@vinodvx vinodvx commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

Per-operation timeout and max attempts for agent loop operations. Users override only what they need via With*ExecutionConfig; zero fields keep SDK defaults.

  • User-facing ExecutionConfig (Timeout, MaxAttempts) on agent creation
  • Internal ExecutionPolicy with resolved values and backoff for runtime use
  • Overrides per operation: LLM, tool auth, tool execute, MCP, A2A, retriever, memory, conversation, sub-agent
  • Sub-agent timeout falls back to agent run timeout (WithTimeout) when not set
  • Same behavior on local and Temporal runtimes

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

Closes #39

Checklist

  • I have run make check
  • I have run task examples:all
  • I have run make 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 7, 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 7, 2026, 3:18 AM

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

@vinodvx
vinodvx merged commit 4d1fa6c into main Jul 7, 2026
4 checks passed
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.92857% with 59 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/runtime/local/agent_loop.go 75.75% 37 Missing and 3 partials ⚠️
internal/runtime/temporal/agent_workflow.go 67.30% 15 Missing and 2 partials ⚠️
internal/runtime/runtime.go 95.34% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@vinodvx
vinodvx deleted the feat/execution-config branch July 7, 2026 03:25
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.

Align execution config, timeouts, and retries between in-process and Temporal runtimes

1 participant