> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# RemoteLLMComponent

> 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.

## Examples

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

## Constructors

* [constructor](#constructor)

## Interfaces

* [RemoteLLMComponentProps](#remotellmcomponentprops)

***

## Constructors

### constructor

```typescript theme={"system"}
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

<ParamField body="props" type="RemoteLLMComponentProps">
  Configuration for the remote LLM component.
</ParamField>

#### 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).
