Skip to content

Refactor chat request handler to middleware-based architecture#133

Draft
wachterjohannes wants to merge 1 commit into
0.4from
feature/middleware-architecture-refactoring
Draft

Refactor chat request handler to middleware-based architecture#133
wachterjohannes wants to merge 1 commit into
0.4from
feature/middleware-architecture-refactoring

Conversation

@wachterjohannes

Copy link
Copy Markdown
Member
  • Extract adapter decision/execution logic into dedicated middleware
  • Add ResponseFormatMiddleware for better separation of concerns
  • Introduce static factory method for easier handler instantiation
  • Make AIChatRequest metadata mutable via withMetadata() method
  • Configure middleware priority order in Symfony integration
  • Simplify AIChatRequestHandler constructor by removing DecisionTree dependency

- Extract adapter decision/execution logic into dedicated middleware
- Add ResponseFormatMiddleware for better separation of concerns
- Introduce static factory method for easier handler instantiation
- Make AIChatRequest metadata mutable via withMetadata() method
- Configure middleware priority order in Symfony integration
- Simplify AIChatRequestHandler constructor by removing DecisionTree dependency
@coderabbitai

coderabbitai Bot commented Oct 18, 2025

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/middleware-architecture-refactoring

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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