UiPath Documentation
getting-started
latest
false
入门开发者指南
  • 简介
    • 概述
    • Environment set up
  • UiPath 智能体入门
  • 开始使用 UiPath 智能体(采用 LangGraph)
    • 简介
    • 设置您的环境
    • 构建智能体
    • Add a tool
    • 评估智能体
    • 连接到 Studio Web
  • 在 Studio Web 中构建低代码智能体
  • 向 UiPath 智能体添加工具
  • Getting Started with UiPath Maestro Flow
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

连接到 Studio Web

将本地 LangGraph 项目连接到 UiPath Studio Web 并推送第一个版本。

确认本地评估结果后,您就可以将项目连接到 Studio Web。

Step 10 - Connect to Studio Web​

您的智能体在本地构建和评估。现在,将其连接到 Studio Web,以便您获取版本历史记录、评估追踪记录,并能够在云用户界面中进行测试。

您可以选择以下三个选项:

选项具体情形
答:在 Studio Web 中进行设置打开 Studio Web,创建一个 Coded Agent 项目,然后复制项目 ID。您将其粘贴到.env中,然后从 CLI 推送。
B:CLI 打包并上传uip codedagent pack, publish, or deploy package the agent and publish it to your personal workspace or tenant feed directly, without Studio Web setup.
C:仅限本地开发服务器对于本地网页用户界面运行uip codedagent dev 。任何内容都不会发布到云。

在本实验中,请使用选项 A :它显示了作为所有三个选项基础的连接模型。

选项 A - 通过 Studio Web 连接​

  1. Log in to UiPath Automation Cloud and select Studio Web from the side navigation.

  2. Select Create New and select Agent.

  3. In the Select agent type dialog box, choose Coded as the agent type and select Start Fresh.

  4. Studio Web 显示“设置您的编码智能体”面板。在“从 IDE 同步到 Studio Web”下,系统将显示带有复制按钮的UIPATH_PROJECT_ID 。复制此值。

  5. Return to your IDE and open the .env file in your project root to add the project ID:

    UIPATH_PROJECT_ID=your-project-id-here
    UIPATH_PROJECT_ID=your-project-id-here
    
    备注:

    只有项目 ID 可为.env 。uip login在全局存储您的身份验证令牌;您在.env中不需要UIPATH_URL或UIPATH_ACCESS_TOKEN 。如果您以前使用过 UiPath Python SDK,并习惯运行uipath auth来填充这些字段,则不再需要该步骤。

  6. Add .env to the .gitignore file to avoid committing it:

    echo ".env" >> .gitignore
    echo ".env" >> .gitignore
    
  7. Push your agent to Studio Web from the command line:

    uip codedagent push
    uip codedagent push
    

推送成功后,系统将返回确认消息,并将版本号提升至0.0.1 。在 Studio Web 中打开项目;智能体定义、您的评估集和版本0.0.1将显示在版本历史记录中。


Step 11 - Iterate and improve (optional)​

评估就绪并连接 Studio Web 后,您可以对智能体进行迭代并观察对分数的影响:

  1. 在eval-results.json或 Studio Web 中查看评估结果。
  2. 请您的编码智能体根据评估反馈改进智能体。
  3. 重新运行评估以验证改进。
  4. 将更新后的版本推送到 Studio Web。
uip codedagent eval agent evaluations/eval-sets/smoke-test.json --workers 3
uip codedagent eval agent evaluations/eval-sets/smoke-test.json --workers 3
uip codedagent push
uip codedagent push

每次推送都会增加 Studio Web 中的版本,为您提供有关智能体升级的完整历史记录。


您构建的内容​

您已经使用 CLI 和编码智能体技能在 UiPath 上构建了 LangGraph 智能体:

  • 使用uip codedagent new已用正确的 LangGraph 结构构建了本地 Python 项目。
  • 在 UiPath 技能(而非详细提示)的指导下,使用编码智能体构建智能体逻辑。
  • 在接入 Cloud 之前,在本地运行智能体并验证输出。
  • Gave the agent a tool to verify its own answer against a live external API.
  • Created an evaluation set, including a trajectory check on tool use, and scored the agent locally.
  • 已连接到 Studio Web 并推送第一个具有完整评估历史记录的版本。

后续操作​

  • Step 10 - Connect to Studio Web​
  • 选项 A - 通过 Studio Web 连接​
  • Step 11 - Iterate and improve (optional)​
  • 您构建的内容​
  • 后续操作​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新