diff options
| author | Baitinq <[email protected]> | 2025-10-19 18:16:45 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-10-19 18:17:00 +0200 |
| commit | 2733e5856998101fb5d96a9f4e0eabf5403cf3d0 (patch) | |
| tree | b19540a27db05c9dd06add87038aae797cb16c4c /main.py | |
| parent | Initial commit (diff) | |
| download | agent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.tar.gz agent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.tar.bz2 agent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.zip | |
dummy example
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.py b/main.py index ce755d5..9914609 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,10 @@ +from agents import Agent, Runner, RunConfig + def main(): - print("Hello from agent!") + agent = Agent(name="Assistant", instructions="You are a helpful assistant") + result = Runner.run_sync(agent, "Write a haiku about recursion in programming.", run_config=RunConfig(tracing_disabled=True)) + print(result.final_output) if __name__ == "__main__": main() |