coding-agents
2026.10
false
UiPath for Coding Agents 用户指南
- 开始使用
- 最佳实践
- 功能
- 技能
- CLI
- 示例
- 高级
- 帮助
方法:构建编码函数
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。以下是有效负载示例:[粘贴示例 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.