about summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-10-19 18:16:45 +0200
committerBaitinq <[email protected]>2025-10-19 18:17:00 +0200
commit2733e5856998101fb5d96a9f4e0eabf5403cf3d0 (patch)
treeb19540a27db05c9dd06add87038aae797cb16c4c /main.py
parentInitial commit (diff)
downloadagent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.tar.gz
agent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.tar.bz2
agent-2733e5856998101fb5d96a9f4e0eabf5403cf3d0.zip
dummy example
Diffstat (limited to '')
-rw-r--r--main.py6
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()