Skip to content

Conversation

@M-Hietala
Copy link
Contributor

adding tracing support for bing custom search tool

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds tracing support for Bing Custom Search tool in the Azure AI Projects SDK. The changes enable proper telemetry instrumentation to track both Bing Custom Search tool calls and their outputs, distinguishing them from similar remote function call patterns.

Key Changes

  • Added a new _emit_tool_output_event helper method to emit tool output events with the appropriate role and event type
  • Updated dictionary keys for output_items to use (id, type) tuples instead of just id to prevent call and output items with the same ID from overwriting each other
  • Enhanced the generic tool call/output handler to support Pydantic v2 model_dump() method in addition to existing as_dict() support
  • Split handling of remote_function_call (the call) and remote_function_call_output (the output) into separate code paths with appropriate event types and field extraction logic

@M-Hietala M-Hietala merged commit 2d79e41 into main Dec 8, 2025
20 checks passed
@M-Hietala M-Hietala deleted the m-hietala/adding_tracing_support_for_bing_custom_search_tool branch December 8, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants