Skip to content

Commit 8aa868b

Browse files
author
wushixiong
committed
add logs
1 parent 98bc158 commit 8aa868b

File tree

1 file changed

+7
-1
lines changed
  • omnibox_wizard/wizard/grimoire/agent

1 file changed

+7
-1
lines changed

omnibox_wizard/wizard/grimoire/agent/agent.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ async def astream(
637637
:param agent_request: The request containing the user's query and tools to be used.
638638
:return: An async iterable of ChatResponse objects.
639639
"""
640+
agent_request.
640641
with tracer.start_as_current_span("agent.astream") as span:
641642
span.set_attributes(
642643
{
@@ -661,7 +662,12 @@ async def astream(
661662
"search", get_merged_description(all_tools)
662663
)
663664
]
664-
665+
span.set_attributes(
666+
{
667+
"all_tools": f"{self.all_tools}",
668+
"custom_tool_call": f"{self.custom_tool_call}"
669+
}
670+
)
665671
assert all_tools, "all_tools must not be empty"
666672

667673
if self.custom_tool_call:

0 commit comments

Comments
 (0)