Toggle Menu
Prev Up Next

# `langchain_community.tools.memorize.tool`.TrainableLLM

class langchain_community.tools.memorize.tool.TrainableLLM(*args, **kwargs)

  Protocol for trainable language models.

  Methods

  `__init__`(*args, **kwargs) |
  `atrain_unsupervised`(inputs, **kwargs) |
  `train_unsupervised`(inputs, **kwargs) |

  __init__(*args, **kwargs)
  abstract async atrain_unsupervised(inputs: Sequence[str], **kwargs: Any) → TrainResult
    Parameters

      - inputs (Sequence[str]) –

      - kwargs (Any) –

    Return type

      TrainResult

  abstract train_unsupervised(inputs: Sequence[str], **kwargs: Any) → TrainResult
    Parameters

      - inputs (Sequence[str]) –

      - kwargs (Any) –

    Return type

      TrainResult