Skip to content

feat: Replace per-run conversationID string with a single options struct on Run, RunAsync, and Stream#25

Merged
vinodvx merged 2 commits into
mainfrom
feat/agent-run-options
Jun 9, 2026
Merged

feat: Replace per-run conversationID string with a single options struct on Run, RunAsync, and Stream#25
vinodvx merged 2 commits into
mainfrom
feat/agent-run-options

Conversation

@vinodvx

@vinodvx vinodvx commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Replace the per-run conversationID string on Run, RunAsync, and Stream with a single optional options object so future per-call settings can be added without new parameters.

Target release: 0.2.x (breaking change)

Breaking change

API Before After
Run (ctx, input, conversationID string) (ctx, input, opts *AgentRunOptions)
RunAsync (ctx, input, conversationID string) (ctx, input, opts *AgentRunOptions)
Stream (ctx, input, conversationID string) (ctx, input, opts *AgentRunOptions)

Before

result, err := a.Run(ctx, prompt, "")
eventCh, err := a.Stream(ctx, prompt, "session-1")
resultCh, approvalCh, err := a.RunAsync(ctx, prompt, "session-1")

## Type of change

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

## Related issues

Closes #24 

## Checklist

- [x] I have run `make lint` and `make test` locally
- [x] I have run `make tidy` if I added or removed dependencies
- [x] Commit messages follow [conventional commits](https://www.conventionalcommits.org) (e.g. `feat:`, `fix:`, `docs:`)
- [x] I have added/updated tests for my changes
- [x] Documentation is updated if needed

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
benchmarks/runner.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@vinodvx vinodvx merged commit 8fd72f8 into main Jun 9, 2026
3 checks passed
@vinodvx vinodvx deleted the feat/agent-run-options branch June 9, 2026 04:50
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.

1 participant