Skip to content

Notify LLM on endpoint create/update #990

@matKlju

Description

@matKlju

AS A Service-Module admin
I WANT the LLM module to be notified when an API endpoint is created or updated
SO THAT the LLM api-tool index stays up to date


Description

When an endpoint is created or edited from either API Registry or Service Flow, the Service Module must notify the LLM module.

LLM endpoint:

POST http://ruuter-internal:8086/rag-search/api-tools/index

Payload per endpoint:

{
  "endpointId": "<endpoint.endpointId>",
  "name": "<endpoint.name>",
  "description": "<endpoint.description>",
  "url": "<selected definition url/openApiUrl/path>",
  "method": "<selected definition methodType>",
  "params": [
    {
      "name": "...",
      "type": "...",
      "required": true,
      "description": "..."
    }
  ]
}

Acceptance Criteria

  • LLM module is notified on endpoint create
  • LLM module is notified on endpoint update
  • Trigger works from API Registry
  • Trigger works from Service Flow
  • Payload includes: endpointId, name, description, url, method, params
  • URL is resolved from selected endpoint definition
  • Endpoints without resolvable URL are skipped silently
  • LLM notification failure does not block save flow
  • Notification errors are logged

Metadata

Metadata

Labels

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions