# Function GenAILLM

- GenAILLM(
  settings?: TGenAILLMSettings,
  agent?: Agent,
  ): { in: (inputs: TGenAILLMInputs) => void; out: TGenAILLMOutputs }

  Use this component to generate a responses from an LLM

  #### Parameters

  - `Optional` settings: TGenAILLMSettings
  - `Optional` agent: Agent

  #### Returns { in: (inputs: TGenAILLMInputs) => void; out: TGenAILLMOutputs }

  - ##### in: (inputs: TGenAILLMInputs) => void

    Create or Connect the component inputs if the input does not exist, it will be created

    #### Examples

    - component.in({ Input: source.out.data })
      - component.in({ Input: { type: 'string', source:source.out.data } })

  - ##### out: TGenAILLMOutputs

    Component outputs - access via .out.OutputName

  - Defined in src/Components/generated/GenAILLM.ts:109