- はじめに
- ベスト プラクティス
- 機能
- スキル
- CLI
- 例
- Advanced (カスタム)
- ヘルプ
レシピ: コード化された関数を構築する
Build, test, and publish a coded function that normalizes an order payload.
Build a coded function in Python or TypeScript/JavaScript that normalizes an order payload.
前提条件
- Install and set up complete, and you are signed in.
- An empty working folder, or an existing project.
Normalize an order payload
-
Open your coding agent in the folder.
-
変換を説明します。
「この注文ペイロードを正規化するコード化された関数を作成してください。すべての文字列フィールドから空白を切り取り、注文 ID を大文字にし、注文日を ISO 8601 に変換してください。以下にペイロードのサンプルを示します: [paste sample JSON]」
-
Review the contract and transform logic.
-
Ask the agent to run the function locally against your sample payload and a malformed one. Check both outputs.
-
Ask the agent to publish the function.
Use the published function
After each publish, update the function's release in Orchestrator under Automations > Processes. Triggers use the new version only after that.
Call the function from a Maestro service task, an agent, or a workflow. See Coded functions.