- Unified Joule is set up and integrated with SAP Work Zone.
- Joule Studio CLI is installed and authenticated.
- SAP Cloud Foundry CLI is installed.
joule-capability/ folder in your project with the following files.
joule-capability/functions/call_agent.yaml– name: contextId
optional: true
– name: taskId
optional: true
action_groups:
– actions:
– type: status-update
message: <? “Processing your delivery request…” ?>
– type: agent-request
agent_type: remote
system_alias: OutboundDeliveryAgent
body: >
<? (contextId == null || contextId.isEmpty()) && (taskId == null || taskId.isEmpty())
? null
: ‘{ “contextId”: “‘ + contextId + ‘”, “taskId”: “‘ + taskId + ‘” }' ?>
result_variable: result
– type: set-variables
variables:
– name: contextId
value: <? result.body.contextId ?>
– name: taskId
value: <? result.body.id ?>
– type: message
message:
type: text
content: “<? result.body.status.message.parts[0].text ?>”
markdown: true
result:
contextId: “<? contextId ?>”
taskId: “<? taskId ?>”
joule-capability/scenarios/invoke_agent.yamlInvoke this agent for anything related to SAP S/4HANA outbound deliveries.
Call this when the user asks to look up delivery documents, check delivery
items, create a new outbound delivery, or query the status of a shipment.
Examples: “Show me the outbound deliveries for shipping point 1000”,
“What items are in delivery 80000012?”,
“Create a delivery from sales order 5000001”,
“List all deliveries for this week”.
target:
type: function
name: call_agent
parameters:
– name: contextId
value: $capability_context.contextId
– name: taskId
value: $capability_context.taskId
capability_context:
– name: contextId
value: $target_result.contextId
– name: taskId
value: $target_result.taskId
joule-capability/capability_context.yaml– name: contextId
– name: taskId
joule-capability/capability.sapdas.yamlmetadata:
namespace: joule.ext
name: capagents4_a2a
version: 1.0.0
display_name: “Outbound Delivery Agent”
description: An A2A agent for managing SAP S/4HANA outbound deliveries. Handles querying delivery documents, delivery items, and creating new outbound deliveries.
system_aliases:
OutboundDeliveryAgent:
destination: capa2as4
joule-capability/da.sapdas.yamlname: capagents4_a2a
capabilities:
– type: local
folder: ./
joule deploy -c joule-capability/da.sapdas.yaml
joule launch
