diff --git a/examples/run_agent_many.py b/examples/run_agent_many.py index 45643dd..241b03b 100644 --- a/examples/run_agent_many.py +++ b/examples/run_agent_many.py @@ -41,7 +41,7 @@ def main(): print(f"Completed {len(results)} jobs:") for i, result in enumerate(results, 1): print(f"\nJob {i}:") - for output in result.outputs: + for output in result.result or []: print(f" {output.key}: {output.value}") diff --git a/examples/run_agent_with_timeout.py b/examples/run_agent_with_timeout.py index 102625a..bdaed37 100755 --- a/examples/run_agent_with_timeout.py +++ b/examples/run_agent_with_timeout.py @@ -103,7 +103,7 @@ def example_batch_with_timeout(): print(f"✓ All {len(results)} jobs completed successfully!") for i, result in enumerate(results, 1): print(f"\n Job {i}:") - for output in result.outputs: + for output in result.result or []: print(f" {output.key}: {output.value}") except TimeoutError as e: