Skip to content

Conversation

@adilhafeez
Copy link
Contributor

No description provided.

@adilhafeez adilhafeez mentioned this pull request Nov 24, 2025
@adilhafeez adilhafeez changed the title agents framework demo agents framework using mcp Dec 16, 2025
@adilhafeez adilhafeez requested a review from salmanap December 16, 2025 08:49
@adilhafeez adilhafeez marked this pull request as ready for review December 16, 2025 08:49
@adilhafeez adilhafeez changed the title agents framework using mcp Update code to use mcp tools for filters Dec 16, 2025
@adilhafeez adilhafeez changed the title Update code to use mcp tools for filters Use mcp tools for filter chain Dec 16, 2025
"--agent",
"agent",
required=True,
help="Agent name: query_rewriter, context_builder, or response_generator",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we mixing agents and filters in the MCP server. That will be confusing for the reader, because we want to drive a distinction between an agent that does "work" and filters are intended to "mutate" requests. Plus in our config they are separate things, and in this example they are combinned.

Copy link
Contributor

@salmanap salmanap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a few comments. Feel free to call me so that we can start resolving these. Major themes

  1. Trace building isn't ideal. Don't understand the diff between MCP spans and others.
  2. We are re-building alot of the sse parsing logic by hand again
  3. We don't seem to be getting the agent description via MCP (i couldn't tell if we were).
  4. Config suggestions.

@adilhafeez adilhafeez merged commit 2f91214 into main Dec 18, 2025
14 of 15 checks passed
@adilhafeez
Copy link
Contributor Author

going to merge this change since same tests are broken in main

salmanap pushed a commit that referenced this pull request Dec 24, 2025
* agents framework demo

* more changes

* add more changes

* pending changes

* fix tests

* fix more

* rebase with main and better handle error from mcp

* add trace for filters

* add test for client error, server error and for mcp error

* update schema validate code and rename kind => type in agent_filter

* fix agent description and pre-commit

* fix tests

* add provider specific request parsing in agents chat

* fix precommit and tests

* cleanup demo

* update readme

* fix pre-commit

* refactor tracing

* fix fmt

* fix: handle MessageContent enum in responses API conversion

- Update request.rs to handle new MessageContent enum structure from main
- MessageContent can now be Text(String) or Items(Vec<InputContent>)
- Handle new InputItem variants (ItemReference, FunctionCallOutput)
- Fixes compilation error after merging latest main (#632)

* address pr feedback

* fix span

* fix build

* update openai version
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.

3 participants