Skip to content

refactor(models): use async-trait for Agent trait (#1)#4

Merged
crrow merged 1 commit intomasterfrom
issue-1-async-trait
Mar 22, 2026
Merged

refactor(models): use async-trait for Agent trait (#1)#4
crrow merged 1 commit intomasterfrom
issue-1-async-trait

Conversation

@crrow
Copy link
Copy Markdown
Contributor

@crrow crrow commented Mar 22, 2026

Summary

  • Replace manual Pin<Box<dyn Future>> pattern with #[async_trait] macro on Agent trait
  • Simplify all Agent implementations (echo_bot, openai_bot)
  • Add async-trait dependency

Closes #1

Test plan

  • cargo check passes
  • cargo test passes
  • cargo clippy passes

🤖 Generated with Claude Code

Replace manual Pin<Box<dyn Future>> pattern with #[async_trait] macro,
simplifying the Agent trait definition and all implementations.

Closes #1
@crrow crrow merged commit 04e11b0 into master Mar 22, 2026
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.

refactor(models): use async-trait for Agent trait

1 participant