setup-python-tools

安装量: 1.8K
排名: #3497

安装

npx skills add https://github.com/cognitedata/builder-skills --skill setup-python-tools

Set Up Python Tool Execution Add client-side Python tool execution via Pyodide to this Flows app. Target: $ARGUMENTS Prerequisite integrate-atlas-chat must already be complete: the app should have vendored atlas-agent code under src/atlas-agent/ (including react.ts for useAtlasChat ) and the peer dependencies from that skill ( @sinclair/typebox , ajv , ajv-formats ). Copy the Python-related modules from the integrate-atlas-chat skill code/ directory into src/atlas-agent/ when adding Pyodide ( python.ts , pyodide.ts , pyodide-react.ts , pyodide-runtime.ts — see integrate-atlas-chat Step 5). Background Atlas agents can have Python tools defined in their CDF config ( type: "runPythonCode" ). When the agent calls one, it arrives as a toolConfirmation (auto-allowed) followed by a clientTool action. The library fetches the tool's Python code from the agent config automatically and executes it via the provided pythonRuntime . Show more

返回排行榜