Skip to content

Add agent middleware to track calls to tavily - #6

Merged
JesseLiberty merged 1 commit into
mainfrom
agentMiddleware
Aug 8, 2026
Merged

Add agent middleware to track calls to tavily#6
JesseLiberty merged 1 commit into
mainfrom
agentMiddleware

Conversation

@JesseLiberty

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 8, 2026 17:56
@JesseLiberty
JesseLiberty merged commit 113be0d into main Aug 8, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds function-invocation middleware to the ResearcherAgent so Tavily tool calls can be observed during agent execution, improving traceability of web-search usage within the blog-writing workflow.

Changes:

  • Introduced an agent-level middleware hook to detect when the Tavily tool is invoked.
  • Added structured logging for Tavily tool invocation within the ResearcherAgent pipeline.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ResearcherAgent.cs
Comment on lines +59 to +62
_logger.LogInformation(
"Researcher invoking Tavily tool '{Tool}' with arguments {Arguments}",
context.Function.Name,
context.Arguments);
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