Skip to content

Breaking Change: Replace conversationID string with RunOptions struct in Run, RunAsync and Stream #24

Description

@vinodvx

Replace conversationID string parameter with AgentRunOptions struct across Run, RunAsync, and Stream methods to support extensible per-run options.

Breaking Change

// Before
agent.Run(ctx, "conv-123")

// After
agent.Run(ctx, AgentRunOptions{
    ConversationOptions: ConversationOptions{ID: "conv-123"},
})

Changes

  • Replace conversationID string with AgentRunOptions in Run, RunAsync, Stream
  • Add ConversationOptions now
  • Add more options like MemoryOptionsfor longterm memory etc..

Docs

  • Update API reference
  • Update all examples with new signature
  • Update README

Release

0.2.0

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions