-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Open
Copy link
Labels
bugSomething isn't workingSomething isn't workingobservabilityIssues related to observability or telemetryIssues related to observability or telemetrypythonv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Description
Description
I have a simple Serialized workflow, with 2 agents and several tools that provide additional information in Japanese. For now, the tools just return Japanese string. The agents are:
- Agent 1: Analyze document and output potential issues using external information via tools
- Agent 2: Generate solutions to issues output by Agent 1, using external information via tools
When tracing LLM calls in Serialized workflow on Open Telemetry (OTEL), messages are shown correctly in Japanese, but only the tools response are shown as unicode. The expectation is the tools response are also shown correctly in Japanese.
Code Sample
Agent:
agent1 = chat_client.as_agent(
name=agent1,
instructions=prompt1,
tools=[tool1, tool2],
response_format=Result1Format
)
agent2 = chat_client.as_agent(
name=agent2,
instructions=prompt2,
tools=[tool1, tool2, tool3],
response_format=Result2Format
)
workflow = SequentialBuilder().participants([agent1, agent2]).build()
workflow.run_stream(user_query)Error Messages / Stack Traces
Tool traces. Response are in unicode, not Japanese.
- role: tool
parts:
- type: tool_call_response
id: call_j8qsCJwRdwsBWwYTitS8EN0c
response: '{"type": "function_result", "call_id": "call_j8qsCJwRdwsBWwYTitS8EN0c", "result": "\n \u4f01\u696d\u60c5\u5831: |\n \u3010\u57fa\u672c\u60c5\u5831\u3011\n ...Package Versions
agent-framework: 1.0.0b260123
Python Version
3.11.6
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingobservabilityIssues related to observability or telemetryIssues related to observability or telemetrypythonv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Type
Projects
Status
No status