Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Provides LLM responses for workflow prompts. Prompts and the configured API key are sent to the selected endpoint.

Prerequisites

  • URL for an OpenAI-compatible chat-completions API
  • API key for that URL

Setup

  • Set LLM_BASE_URL, LLM_API_KEY, and LLM_MODEL in the worker environment and add tenant configuration:
[modules.llm]
base_url = "{env:LLM_BASE_URL}"
api_key = "{env:LLM_API_KEY}"
default_model = "{env:LLM_MODEL}"

This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

Send messages to an LLM through a configured chat-completions endpoint.

Members

chat

llm.chat(message, capability?, model?)

Send a message to the LLM and get a response.

Parameters
messagestringThe message to send to the LLM
capability?optionalstringCapability ladder name (e.g. ‘fast_cheap’, ‘standard’, ‘high_reasoning’).
model?optionalstringModel ID to try first.
Returns
responsestringThe LLM’s response