Ai
1 Star 0 Fork 0

wowai/openai-agents-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hello_world_jupyter.py 416 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dmitry Pimenov 提交于 2025-03-13 08:30 +08:00 . fixing mypy error
from agents import Agent, Runner
agent = Agent(name="Assistant", instructions="You are a helpful assistant")
# Intended for Jupyter notebooks where there's an existing event loop
result = await Runner.run(agent, "Write a haiku about recursion in programming.") # type: ignore[top-level-await] # noqa: F704
print(result.final_output)
# Code within code loops,
# Infinite mirrors reflect—
# Logic folds on self.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wowai/openai-agents-python.git
git@gitee.com:wowai/openai-agents-python.git
wowai
openai-agents-python
openai-agents-python
main

搜索帮助