Skip to content

[FEATURE] Support configurable server url for a2aΒ #1125

@jmunozro

Description

@jmunozro

πŸ“‹ Prerequisites

πŸ“ Feature Summary

Support configurable server url for a2a

❓ Problem Statement / Motivation

Currently the a2a url is always 127.0.0.1:

❯ curl localhost:8083/api/a2a/kagent/k8s-a2a-agent/.well-known/agent.json -ks| jq .
{
  "name": "k8s_a2a_agent",
  "description": "An example A2A agent that knows how to use Kubernetes tools.",
  "url": "http://127.0.0.1:8083/api/a2a/kagent/k8s-a2a-agent/",
  "version": "",
  "capabilities": {
    "streaming": true,
    "pushNotifications": false,
    "stateTransitionHistory": true
  },
  "defaultInputModes": [
    "text"
  ],
  "defaultOutputModes": [
    "text"
  ],
  "skills": [
    {
      "id": "get-resources-skill",
      "name": "Get Resources",
      "description": "Get resources in the Kubernetes cluster",
      "tags": [
        "k8s",
        "resources"
      ],
      "examples": [
        "Get all resources in the Kubernetes cluster",
        "Get the pods in the default namespace",
        "Get the services in the istio-system namespace",
        "Get the deployments in the istio-system namespace",
        "Get the jobs in the istio-system namespace",
        "Get the cronjobs in the istio-system namespace",
        "Get the statefulsets in the istio-system namespace"
      ],
      "inputModes": [
        "text"
      ],
      "outputModes": [
        "text"
      ]
    }
  ]
}

This is a big limitation to integrate it with external tooling.

πŸ’‘ Proposed Solution

Provide a way in the controller to provide the serverbase url.
I believe this is possible in the kagent cli with KAGENT_URL, but not for a2a

πŸ”„ Alternatives Considered

No response

🎯 Affected Service(s)

None

πŸ“š Additional Context

No response

πŸ™‹ Are you willing to contribute?

  • I am willing to submit a PR for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions