<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmokmss</author_name>
  <author_url>https://blog.hatena.ne.jp/tmokmss/</author_url>
  <blog_title>maybe daily dev notes</blog_title>
  <blog_url>https://tmokmss.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>CDK</anon>
    <anon>開発</anon>
  </categories>
  <description>LLMアプリ開発プラットフォームのDifyでは、ワークフローのコードブロックでPythonコードを実行できます。 この記事では、このコード内でboto3やnumpyなど任意のライブラリを呼び出す方法をまとめます。セルフホストのDify向けです。 Difyコードブロックの例 Difyのコード実行の仕組み 前提知識として、Difyのコード実行の仕組みを簡単におさらいします。 Difyでは、PythonやNode.jsのコードをDify Sandboxという独自のサンドボックス内で実行します。 Dify、特にSaaS版では、ユーザーがDifyのサーバー上で悪意のあるコードを実行する可能性があるため、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmokmss.hatenablog.com%2Fentry%2Fuse-any-python-packages-on-dify-sandbox&quot; title=&quot;Difyのコード実行機能で任意のPythonライブラリを使う - maybe daily dev notes&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tmokmss/20240830/20240830090853.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-30 09:19:30</published>
  <title>Difyのコード実行機能で任意のPythonライブラリを使う</title>
  <type>rich</type>
  <url>https://tmokmss.hatenablog.com/entry/use-any-python-packages-on-dify-sandbox</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
