Is there a way to ensure the trace span ordering is correct? For example I have this trace and for the tool calls under AgentSupportAgent.run the completions aren't in the correct order/association with the correct tool call. Pretty basic setup with tracer_provider = register(project_name="chat", auto_instrument=True, batch=True) and using LiteLLMInstrumentor
馃挕聽Hint: Mention RunLLM in the thread for followups.
For example in my image I would expect the completion to be more easily shown/associated with its tool call. Here it's all just kind of thrown together.. I know the GetAgentPoersonalizationTool and UpdateAgentPersonalizationTool are sync so when I see this I expect the completions to line up as well
It sounds like there is a one-to-one correspondence between LLM and tool spans, and you expect them to alternate.
Not exactly sure what you mean by that. I just expect the tool call completion be linked in the view with it's associated tool call. For this run the AgentSupportAgent is a code agent and it was doing this
```python
# Get current personalization settings
current_settings = get_agent_personalization()
# Update the settings to unmute SMS notifications
updated_settings = update_agent_personalization(
assistant_name=None,
agent_name=None,
sync_time=None,
auxiliary_sync_time=None,
default_appointment_duration_minutes=None,
use_times_for_tasks=True,
timezone=None
)
# Print the updated settings to verify
print("Updated settings:", updated_settings)So you see both tool calls come in the but I'm expecting the completion for get_agent_personalization to be displayed before UpdateAgentPersonalizationTool
Perhaps I'm just misunderstanding the completion associations with tool calls
I see. I think I'm also incorrectly associating the completions with the tools when in reality these are each thinking step for the root agent. I'm using smolagents so probably stemming from a misunderstanding of 2 frameworks simultaneously 馃檪
So think we're good. Thanks for the insights
Thanks. Going off the docs here https://arize.com/docs/phoenix/tracing/integrations-tracing/hfsmolagents I was expecting more of that view. I shimmed in LiteLLM to try and see if that did the trick but couldn't get the same view Look like there is an ongoing bug so my view isn't really reflecting what the demo trace has. Looks like there is a fix out https://github.com/Arize-ai/openinference/pull/1744
