Skip to content

Running Agents in Parallel and Traces #481

Closed
@nikhil-pandey

Description

@nikhil-pandey

Please read this first

  • Have you read the docs?Agents SDK docs yes
  • Have you searched for related issues? Others may have had similar requests

Question

Running agents in parallel following this example https://github.com/openai/openai-agents-python/blob/main/examples/agent_patterns/parallelization.py

    with trace("Coding Agent"):
        solutions: list[RunResult] = await asyncio.gather(
            *[Runner.run(coding_agent, prompt) for _ in range(3)]
        )

Ends up sending multiple traces but only one is populated.

Image

Is this expected?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-more-infoWaiting for a reply/more info from the authorquestionQuestion about using the SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions