Skip to main content
Remote LLM component for text generation services. This component provides access to external LLM providers like OpenAI, Anthropic, or Inworld. It sets defaults for provider/model and carries default text generation config. Remarks API key injection is handled by the graph builder at assembly time. You do not need to include secrets in this component definition. Example
const llmComponent = new RemoteLLMComponent({
  id: 'my-llm-component',
  provider: 'openai',
  modelName: 'gpt-4o-mini',
  defaultConfig: {
    temperature: 0.7,
    maxNewTokens: 1000
  }
});

Constructor

new RemoteLLMComponent(props?: RemoteLLMComponentProps): RemoteLLMComponent
Creates a new RemoteLLMComponent instance. Defaults to a provider and model when omitted, and accepts a camelCased defaultConfig that will be converted to snake_case for the runtime.

Parameters

props
RemoteLLMComponentProps
Configuration for the remote LLM component

Returns

A new RemoteLLMComponent instance

Overrides

AbstractComponent.constructor