microsoft.opentelemetry.a365.core.execute_tool_scope module
- class microsoft.opentelemetry.a365.core.execute_tool_scope.ExecuteToolScope(request, details, agent_details, user_details=None, span_details=None)[source]
Bases:
OpenTelemetryScopeProvides OpenTelemetry tracing scope for AI tool execution operations.
- static start(request, details, agent_details, user_details=None, span_details=None)[source]
Creates and starts a new scope for tool execution tracing.
- Parameters:
request (
Request) – Request details for the tool executiondetails (
ToolCallDetails) – The details of the tool callagent_details (
AgentDetails) – The details of the agent making the calluser_details (
UserDetails|None) – Optional human user detailsspan_details (
SpanDetails|None) – Optional span configuration (parent context, timing, kind)
- Return type:
- Returns:
A new ExecuteToolScope instance