UiPath Documentation
functions
latest
false
  • Visão geral
    • Sobre funções
  • Python functions
    • Introdução
    • Building Python functions
    • Accessing platform services
    • Tracing and observability
    • Teste e depuração
  • Deploy and run

Functions user guide

Sobre funções

Observação:

Essa funcionalidade está disponível em pré-visualização.

UiPath® Functions are developer-native, platform-governed units of compute. You write the logic in code, deploy it to UiPath as a standard .nupkg package, and invoke it from any UiPath surface — a Maestro process, an Orchestrator job, or another automation.

Functions are typed, traceable, and testable building blocks that run alongside RPA robots, agents, and human tasks in the same orchestration layer. They are the deterministic compute unit of the agentic platform: no LLM reasoning loop, no model — just code that takes typed input and returns typed output.

Python functions

This guide covers Python functions, authored with the uipath Python SDK. A Python function is a typed Python module that:

  • Defines its input and output as typed Python (dataclass or pydantic model), exported as JSON Schema for variable binding on any invocation surface.
  • Runs as an Orchestrator job — invoked by a Maestro Service Task, the Run Job activity in Studio, the Orchestrator API, or a job trigger.
  • Retrieves credentials and platform resources at runtime through the UiPath() client (assets, buckets, queues, connections).
  • Emits execution spans to traces through the @traced decorator.

When to use a function

Use a Python function when you need deterministic, code-first logic as a step in a larger automation — for example:

  • A custom calculation or scoring step in a Maestro process.
  • An API integration (NetSuite, SAP, any REST service).
  • Data transformation or business-rule enforcement between process steps.
  • A reusable, typed building block invoked from multiple automations.

For AI-driven, model-reasoning logic, use a coded agent instead.

How it fits together

Author (uipath SDK)Package (uipath pack)Publish (uipath publish)
                                                      ↓
                                          Orchestrator package feed
                                                      ↓
                                 Deploy as a process (in an Orchestrator folder)
                                                      ↓
  Invoke from:  Maestro Service Task  |  Studio Run Job  |  Orchestrator API  |  Job trigger
Author (uipath SDK)  →  Package (uipath pack)  →  Publish (uipath publish)
                                                      ↓
                                          Orchestrator package feed
                                                      ↓
                                 Deploy as a process (in an Orchestrator folder)
                                                      ↓
  Invoke from:  Maestro Service Task  |  Studio Run Job  |  Orchestrator API  |  Job trigger

Próximas Etapas

  • Python functions
  • When to use a function
  • How it fits together
  • Próximas Etapas

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades