Python: DevUI: Use metadata.entity_id instead of model field (#1984)

* DevUI: Use metadata.entity_id for agent/workflow name instead of model field

* OpenAI Responses: add explicit request validation

* Review feedback
This commit is contained in:
Reuben Bond
2025-11-07 22:16:55 +00:00
committed by GitHub
parent 778a9fec5c
commit f71faa80f9
23 changed files with 783 additions and 459 deletions
@@ -89,7 +89,7 @@ def capture_agent_stream_with_tracing(client: OpenAI, agent_id: str, scenario: s
try:
stream = client.responses.create(
model=agent_id, # DevUI uses model field as entity_id
metadata={"entity_id": agent_id},
input="Tell me about the weather in Tokyo. I want details.",
stream=True,
)
@@ -130,7 +130,7 @@ def capture_workflow_stream_with_tracing(
try:
stream = client.responses.create(
model=workflow_id, # DevUI uses model field as entity_id
metadata={"entity_id": workflow_id},
input=(
"Process this spam detection workflow with multiple emails: "
"'Buy now!', 'Hello mom', 'URGENT: Click here!'"