You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: support structured output extraction for sequential workflows
The runtime and schema extraction only checked output_executors for
response_format, which missed sequential workflows where the output
executor is _EndWithConversation (not an AgentExecutor). Add fallback
to scan all workflow executors and pick the last agent's response_format.
Includes e2e streaming tests and a sequential-structured-output sample.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/uipath-agent-framework/samples/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ Sample agents built with [Agent Framework](https://github.com/microsoft/agent-fr
8
8
|--------|-------------|
9
9
|[quickstart-workflow](./quickstart-workflow/)| Single workflow agent with tool calling: fetches live weather data for any location |
10
10
|[structured-output](./structured-output/)| Structured output workflow: extracts city information and returns it as a typed Pydantic model |
11
+
|[sequential-structured-output](./sequential-structured-output/)| Sequential pipeline with structured output: researcher and editor agents produce a typed Pydantic city profile |
11
12
|[hitl-workflow](./hitl-workflow/)| Human-in-the-loop workflow: customer support with approval-gated billing and refund operations |
12
13
|[sequential](./sequential/)| Sequential pipeline: writer, reviewer, and editor agents process a task one after another |
13
14
|[concurrent](./concurrent/)| Concurrent orchestration: sentiment, topic extraction, and summarization agents analyze text in parallel |
A sequential pipeline that combines multi-agent processing with structured output. A researcher gathers facts about a city, then an editor organizes them into a well-defined Pydantic model (`CityInfo`). The final output is a typed JSON object — not free-form text.
4
+
5
+
## Agent Graph
6
+
7
+
```mermaid
8
+
flowchart TB
9
+
__start__(__start__)
10
+
__end__(__end__)
11
+
input-conversation(input-conversation)
12
+
researcher(researcher)
13
+
editor(editor)
14
+
end_(end)
15
+
__start__ --> |input|input-conversation
16
+
input-conversation --> researcher
17
+
researcher --> editor
18
+
editor --> end_
19
+
end_ --> |output|__end__
20
+
```
21
+
22
+
Internally, the sequential orchestration chains:
23
+
-**researcher** — gathers key facts about the city (country, population, landmarks, cultural significance)
24
+
-**editor** — organizes the research into a structured `CityInfo` schema with `response_format`
25
+
26
+
Each agent sees the full conversation history from previous agents. The last agent's `response_format` determines the output schema.
27
+
28
+
## Prerequisites
29
+
30
+
Authenticate with UiPath to configure your `.env` file:
31
+
32
+
```bash
33
+
uipath auth
34
+
```
35
+
36
+
## Run
37
+
38
+
```
39
+
uipath run agent '{"messages": [{"contentParts": [{"data": {"inline": "Tell me about Tokyo"}}], "role": "user"}]}'
0 commit comments