Skip to content

Python: New Feature: More granular spans for AutoFunctionInvocationLoop #12080

@HuskyDanny

Description

@HuskyDanny

We are debugging the performance issue for the agent calling which uses the functional calling that uses the AutoFunctionInvocationLoop.

From the trace, we see the span at AutoFunctionInvocationLoop level which took a quite lot of time and below it are some tool calls.

Image

Can we add more granular spans on the AutoFunctionInvocationLoop? Specifically, I want to identify which part is taking the majority of time, I know there is functional calling to decide which tool to call, can we have this span in as well?

Overall, I feel this is important to diagnose agent performance issue.

The SDK I am using is semantic-kernel==1.28.0 in python

Metadata

Metadata

Assignees

Labels

pythonPull requests for the Python Semantic Kerneltelemetry

Projects

Status

Backlog: Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions