LangChainLLM๏ƒ

pydantic model llama_index.llms.langchain.LangChainLLM๏ƒ

Adapter for a LangChain LLM.

Show JSON schema
{
   "title": "LangChainLLM",
   "description": "Adapter for a LangChain LLM.",
   "type": "object",
   "properties": {
      "callback_manager": {
         "title": "Callback Manager"
      }
   }
}

Config
  • arbitrary_types_allowed: bool = True

Fields

Validators
  • _validate_callback_manager ยป callback_manager

async achat(messages: Sequence[ChatMessage], **kwargs: Any) Any๏ƒ

Async chat endpoint for LLM.

async acomplete(*args: Any, **kwargs: Any) Any๏ƒ

Async completion endpoint for LLM.

async astream_chat(messages: Sequence[ChatMessage], **kwargs: Any) Any๏ƒ

Async streaming chat endpoint for LLM.

async astream_complete(*args: Any, **kwargs: Any) Any๏ƒ

Async streaming completion endpoint for LLM.

chat(messages: Sequence[ChatMessage], **kwargs: Any) Any๏ƒ

Chat endpoint for LLM.

classmethod class_name() str๏ƒ

Get the class name, used as a unique ID in serialization.

This provides a key that makes serialization robust against actual class name changes.

complete(*args: Any, **kwargs: Any) Any๏ƒ

Completion endpoint for LLM.

stream_chat(messages: Sequence[ChatMessage], **kwargs: Any) Any๏ƒ

Streaming chat endpoint for LLM.

stream_complete(*args: Any, **kwargs: Any) Any๏ƒ

Streaming completion endpoint for LLM.

property llm: BaseLanguageModel๏ƒ
property metadata: LLMMetadata๏ƒ

LLM metadata.