llm
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, andLLM_MODELin the worker environment and add tenant configuration:
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 LLMcapability?optionalstringCapability ladder name (e.g. ‘fast_cheap’, ‘standard’, ‘high_reasoning’).model?optionalstringModel ID to try first.Returns
responsestringThe LLM’s response