about summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
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()