Skip to content

Remote Agent Resource (UAF)

Note: This capability is now provided as an installable component. See the Components guide for how to install and use it.

Install: kdeps component install remoteagent

Usage: run: { component: { name: remoteagent, with: { url: "...", query: "..." } } }

The Remote Agent component invokes a remote kdeps agent over HTTP, sending a query and returning the agent's response.

Note: The component uses simple HTTP invocation (url + query). For the full UAF federation protocol (Ed25519 signing, URN-based identity, receipts, trust levels, fallback agents), use the kdeps federation CLI commands and configure the federation workflow directly.

Component Inputs

InputTypeRequiredDefaultDescription
urlstringyesBase URL of the remote kdeps agent (e.g. http://host:16394)
querystringyesQuery or request body to send to the agent

Using the Remote Agent Component

yaml
run:
  component:
    name: remoteagent
    with:
      url: "https://remote-agent.example.com"
      query: "Translate 'Hello, world!' to French"

Access the result via output('<callerActionId>'). The result includes the agent's response.


Result Map

KeyTypeDescription
successbooltrue if the remote agent responded successfully.
responseanyThe agent's response payload.

Expression Support

All fields support KDeps expressions:

yaml
run:
  component:
    name: remoteagent
    with:
      url: "{{ env('REMOTE_AGENT_URL') }}"
      query: "{{ get('user_query') }}"

Full Example: Multi-Agent Pipeline

yaml
# Step 1: Call a remote translation agent
- apiVersion: kdeps.io/v1
  kind: Resource

  metadata:
    actionId: translate
    name: Translate via Remote Agent

  run:
    component:
      name: remoteagent
      with:
        url: "{{ env('TRANSLATOR_AGENT_URL') }}"
        query: "{{ get('text_to_translate') }}"

# Step 2: Use the translation result
- apiVersion: kdeps.io/v1
  kind: Resource

  metadata:
    actionId: respond
    name: Return Translation
    requires:
      - translate

  run:
    apiResponse:
      success: true
      response:
        translation: "{{ output('translate').response }}"

Federation CLI Reference

For advanced UAF federation (key management, agent registration, receipts):

CommandDescription
kdeps federation keygen --org <name>Generate Ed25519 keypair
kdeps federation register ...Register agent in UAF registry
kdeps federation trust add ...Add registry trust anchor
kdeps federation mesh listList remote agents in project
kdeps federation receipt verify ...Verify signed receipt

See Also

Released under the Apache 2.0 License.