Toggle Menu
Prev Up Next

# `langchain_ai21.chat.chat_adapter`.J2ChatAdapter

class langchain_ai21.chat.chat_adapter.J2ChatAdapter

  Methods

  `__init__`() |
  `call`(client, **params) |
  `convert_messages`(messages) |

  __init__()
  call(client: Any, **params: Any) → List[BaseMessage]
    Parameters

      - client (Any) –

      - params (Any) –

    Return type

      List[BaseMessage]

  convert_messages(messages: List[BaseMessage]) → Dict[str, Any]
    Parameters

      messages (List[BaseMessage]) –

    Return type

      Dict[str, Any]