Skip to content

Commit 0d505e2

Browse files
Chibi Vikramclaude
andcommitted
feat: add process bindings for calculator suspend/resume sample
- Add bindings.json with Add.Two.Number.API.Workflow.Tool process configuration - Update graph_calculator.py to use process from bindings instead of hardcoded values - Regenerate entry-points.json unique IDs for agent variants This enables the calculator agent to invoke real RPA processes with proper suspend/resume behavior, demonstrating production-ready workflow orchestration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2207129 commit 0d505e2

3 files changed

Lines changed: 27 additions & 6 deletions

File tree

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
{
22
"version": "2.0",
3-
"resources": []
3+
"resources": [
4+
{
5+
"resource": "process",
6+
"key": "Add.Two.Number.API.Workflow.Tool.api.API.Workflow",
7+
"value": {
8+
"processKey": {
9+
"defaultValue": "Add.Two.Number.API.Workflow.Tool.api.API.Workflow",
10+
"isExpression": false,
11+
"displayName": "Process Key"
12+
},
13+
"releaseKey": {
14+
"defaultValue": "40A364E7-8B12-407E-BAB4-16F1E028AEA4",
15+
"isExpression": false,
16+
"displayName": "Release Key"
17+
}
18+
},
19+
"metadata": {
20+
"ActivityName": "InvokeProcess",
21+
"BindingsVersion": "2.2",
22+
"DisplayLabel": "Add.Two.Number.API.Workflow.Tool.api.API.Workflow"
23+
}
24+
}
25+
]
426
}

samples/tool-calling-suspend-resume/entry-points.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"entryPoints": [
55
{
66
"filePath": "graph",
7-
"uniqueId": "e0ec85e4-fb73-49a8-9508-56af8575fc3a",
7+
"uniqueId": "0afae2cc-504a-4c2b-8684-6a15239e5959",
88
"type": "agent",
99
"input": {
1010
"type": "object",
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"filePath": "agent-simple",
83-
"uniqueId": "504c790d-7ee4-4515-aeba-8e7426cb9949",
83+
"uniqueId": "1c17db94-d9ac-475a-aab5-1dc5d8041bd9",
8484
"type": "agent",
8585
"input": {
8686
"type": "object",
@@ -156,7 +156,7 @@
156156
},
157157
{
158158
"filePath": "agent-calculator",
159-
"uniqueId": "fd83d83e-af14-4ed2-90d8-953048b00216",
159+
"uniqueId": "2b821c93-7f42-44ff-b13d-38e5fdb5908f",
160160
"type": "agent",
161161
"input": {
162162
"type": "object",

samples/tool-calling-suspend-resume/graph_calculator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ async def calculator_process_node(state: State) -> State:
5252

5353
# Create an InvokeProcess request for calculator
5454
invoke_request = InvokeProcess(
55-
name="Calculator",
55+
name="Add.Two.Number.API.Workflow.Tool.api.API.Workflow",
5656
input_arguments={
5757
"a": state.a,
5858
"b": state.b,
5959
"operator": state.operator,
6060
},
61-
process_folder_path="Shared",
6261
)
6362

6463
logger.info(

0 commit comments

Comments
 (0)