This commit is contained in:
Dinesh Yeduguru 2025-01-16 10:43:09 -08:00
parent 749bc74509
commit a9192e252c
2 changed files with 9 additions and 1 deletions

View file

@ -49,7 +49,7 @@ class TelemetryDatasetMixin:
attributes_to_return: List[str], attributes_to_return: List[str],
max_depth: Optional[int] = None, max_depth: Optional[int] = None,
) -> QuerySpansResponse: ) -> QuerySpansResponse:
traces = await self.query_traces(attribute_filters=attribute_filters) traces = await self.query_traces(attribute_filters=attribute_filters).data
spans = [] spans = []
for trace in traces: for trace in traces:

View file

@ -178,6 +178,14 @@ def test_builtin_tool_web_search(llama_stack_client, agent_config):
assert "Tool:brave_search Response:" in logs_str assert "Tool:brave_search Response:" in logs_str
assert "mark zuckerberg" in logs_str.lower() assert "mark zuckerberg" in logs_str.lower()
assert "No Violation" in logs_str assert "No Violation" in logs_str
spans = llama_stack_client.telemetry.query_spans(
attribute_filters=[
{"key": "session_id", "op": "eq", "value": session_id},
],
attributes_to_return=["input", "output"],
)
breakpoint()
assert len(spans) > 1
def test_builtin_tool_code_execution(llama_stack_client, agent_config): def test_builtin_tool_code_execution(llama_stack_client, agent_config):