Skip to main content

Examples

const llmComponent = new RemoteLLMComponent({
id: 'my-llm-component',
provider: 'openai',
modelName: 'gpt-4o-mini',
defaultConfig: {
temperature: 0.7,
maxNewTokens: 1000
}
});

Constructors

Interfaces


Constructors

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

RemoteLLMComponent

Interfaces

RemoteLLMComponentProps

Configuration options for RemoteLLMComponent creation.

Properties

provider?: string LLM provider (e.g., ‘openai’, ‘anthropic’, ‘inworld’). modelName?: string Provider-specific model name (e.g., ‘gpt-4o-mini’). defaultConfig?: object Default text generation configuration (camelCase allowed).