You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/execute_tool_scope.py
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
from .constantsimport (
6
6
EXECUTE_TOOL_OPERATION_NAME,
7
7
GEN_AI_EVENT_CONTENT,
8
+
GEN_AI_EXECUTION_SOURCE_DESCRIPTION_KEY,
9
+
GEN_AI_EXECUTION_SOURCE_NAME_KEY,
8
10
GEN_AI_TOOL_ARGS_KEY,
9
11
GEN_AI_TOOL_CALL_ID_KEY,
10
12
GEN_AI_TOOL_DESCRIPTION_KEY,
@@ -14,6 +16,7 @@
14
16
SERVER_PORT_KEY,
15
17
)
16
18
from .opentelemetry_scopeimportOpenTelemetryScope
19
+
from .requestimportRequest
17
20
from .tenant_detailsimportTenantDetails
18
21
from .tool_call_detailsimportToolCallDetails
19
22
@@ -26,31 +29,35 @@ def start(
26
29
details: ToolCallDetails,
27
30
agent_details: AgentDetails,
28
31
tenant_details: TenantDetails,
32
+
request: Request|None=None,
29
33
) ->"ExecuteToolScope":
30
34
"""Creates and starts a new scope for tool execution tracing.
31
35
32
36
Args:
33
37
details: The details of the tool call
34
38
agent_details: The details of the agent making the call
35
39
tenant_details: The details of the tenant
40
+
request: Optional request details for additional context
Copy file name to clipboardExpand all lines: libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/inference_scope.py
0 commit comments