Skip to content

Commit 59261ae

Browse files
authored
Merge pull request #150 from UiPath/fix/update_samples_openai
fix: update openai agents samples
2 parents d6f6f0f + 3b7d3ca commit 59261ae

19 files changed

Lines changed: 1577 additions & 648 deletions

File tree

packages/uipath-openai-agents/samples/agent-as-tools/.agent/SDK_REFERENCE.md

Lines changed: 36 additions & 18 deletions
Large diffs are not rendered by default.

packages/uipath-openai-agents/samples/agent-as-tools/agent.mermaid

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
flowchart TB
22
__start__(__start__)
33
orchestrator_agent(orchestrator_agent)
4-
spanish_agent(spanish_agent)
5-
french_agent(french_agent)
6-
italian_agent(italian_agent)
74
orchestrator_agent_tools(tools)
85
__end__(__end__)
9-
orchestrator_agent --> |translate_to_spanish|spanish_agent
10-
spanish_agent --> orchestrator_agent
11-
orchestrator_agent --> |translate_to_french|french_agent
12-
french_agent --> orchestrator_agent
13-
orchestrator_agent --> |translate_to_italian|italian_agent
14-
italian_agent --> orchestrator_agent
156
orchestrator_agent --> orchestrator_agent_tools
167
orchestrator_agent_tools --> orchestrator_agent
178
__start__ --> |input|orchestrator_agent

packages/uipath-openai-agents/samples/agent-as-tools/entry-points.json

Lines changed: 6 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"entryPoints": [
55
{
66
"filePath": "agent",
7-
"uniqueId": "aa358456-b985-4a8d-abf8-280d13d1ef60",
7+
"uniqueId": "c345930e-50b8-410a-b521-b9ddc3d4e78a",
88
"type": "agent",
99
"input": {
1010
"type": "object",
@@ -90,37 +90,19 @@
9090
"subgraph": null,
9191
"metadata": null
9292
},
93-
{
94-
"id": "spanish_agent",
95-
"name": "spanish_agent",
96-
"type": "node",
97-
"subgraph": null,
98-
"metadata": null
99-
},
100-
{
101-
"id": "french_agent",
102-
"name": "french_agent",
103-
"type": "node",
104-
"subgraph": null,
105-
"metadata": null
106-
},
107-
{
108-
"id": "italian_agent",
109-
"name": "italian_agent",
110-
"type": "node",
111-
"subgraph": null,
112-
"metadata": null
113-
},
11493
{
11594
"id": "orchestrator_agent_tools",
11695
"name": "tools",
11796
"type": "tool",
11897
"subgraph": null,
11998
"metadata": {
12099
"tool_names": [
121-
"get_translation_preferences"
100+
"get_translation_preferences",
101+
"translate_to_spanish",
102+
"translate_to_french",
103+
"translate_to_italian"
122104
],
123-
"tool_count": 1
105+
"tool_count": 4
124106
}
125107
},
126108
{
@@ -132,36 +114,6 @@
132114
}
133115
],
134116
"edges": [
135-
{
136-
"source": "orchestrator_agent",
137-
"target": "spanish_agent",
138-
"label": "translate_to_spanish"
139-
},
140-
{
141-
"source": "spanish_agent",
142-
"target": "orchestrator_agent",
143-
"label": null
144-
},
145-
{
146-
"source": "orchestrator_agent",
147-
"target": "french_agent",
148-
"label": "translate_to_french"
149-
},
150-
{
151-
"source": "french_agent",
152-
"target": "orchestrator_agent",
153-
"label": null
154-
},
155-
{
156-
"source": "orchestrator_agent",
157-
"target": "italian_agent",
158-
"label": "translate_to_italian"
159-
},
160-
{
161-
"source": "italian_agent",
162-
"target": "orchestrator_agent",
163-
"label": null
164-
},
165117
{
166118
"source": "orchestrator_agent",
167119
"target": "orchestrator_agent_tools",

packages/uipath-openai-agents/samples/agent-as-tools/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description = "Language routing agent example using OpenAI Agents"
55
readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-openai-agents>=0.0.1, <0.1.0",
8+
"uipath-openai-agents>=0.0.5, <0.1.0",
99
"openai-agents>=0.6.5",
10-
"uipath>=2.4.10",
10+
"uipath>=2.8.2, <2.9.0",
1111
]
1212

1313
[dependency-groups]

packages/uipath-openai-agents/samples/agent-as-tools/uv.lock

Lines changed: 482 additions & 463 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)