2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

どこもかしこも動きが早い。MLflowもOpenAI Agents SDKのトレースに対応しました。

こちらを試します。

🖥️ OpenAI Agent SDK: MLflow Tracing now supports OpenAI Agent SDK, a multi-agent framework developed by OpenAI.

%pip install -U mlflow
%pip install openai-agents
%restart_python
import os

os.environ['OPENAI_API_KEY'] = dbutils.secrets.get("demo-token-takaaki.yayoi", "openai_api_key")
import mlflow
mlflow.openai.autolog()
from agents import Agent, Runner

agent = Agent(name="アシスタント", instructions="あなたは役に立つアシスタントです")

result = await Runner.run(agent, "プログラミングにおける再帰について俳句を書いてください。")
display(result.final_output)
'コードの中  \n自らを呼ぶ声  \n再帰の美'

Screenshot 2025-03-15 at 14.28.06.png

はじめてのDatabricks

はじめてのDatabricks

Databricks無料トライアル

Databricks無料トライアル

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?