AirbyteGongLoader#

class langchain_community.document_loaders.airbyte.AirbyteGongLoader(config: Mapping[str, Any], stream_name: str, record_handler: Callable[[Any, str | None], Document] | None = None, state: Any | None = None)[source]#

Load from Gong using an Airbyte source connector.

Initializes the loader.

Parameters:
  • config (Mapping[str, Any]) – The config to pass to the source connector.

  • stream_name (str) – The name of the stream to load.

  • record_handler (Callable[[Any, str | None], Document] | None) – A function that takes in a record and an optional id and returns a Document. If None, the record will be used as the document. Defaults to None.

  • state (Any | None) – The state to pass to the source connector. Defaults to None.

Attributes

last_state

Methods

__init__(config,Β stream_name[,Β ...])

Initializes the loader.

alazy_load()

A lazy loader for Documents.

aload()

Load data into Document objects.

lazy_load()

A lazy loader for Documents.

load()

Load data into Document objects.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(config: Mapping[str, Any], stream_name: str, record_handler: Callable[[Any, str | None], Document] | None = None, state: Any | None = None) β†’ None[source]#

Initializes the loader.

Parameters:
  • config (Mapping[str, Any]) – The config to pass to the source connector.

  • stream_name (str) – The name of the stream to load.

  • record_handler (Callable[[Any, str | None], Document] | None) – A function that takes in a record and an optional id and returns a Document. If None, the record will be used as the document. Defaults to None.

  • state (Any | None) – The state to pass to the source connector. Defaults to None.

Return type:

None

async alazy_load() β†’ AsyncIterator[Document]#

A lazy loader for Documents.

Return type:

AsyncIterator[Document]

async aload() β†’ List[Document]#

Load data into Document objects.

Return type:

List[Document]

lazy_load() β†’ Iterator[Document]#

A lazy loader for Documents.

Return type:

Iterator[Document]

load() β†’ List[Document]#

Load data into Document objects.

Return type:

List[Document]

load_and_split(text_splitter: TextSplitter | None = None) β†’ List[Document]#

Load Documents and split into chunks. Chunks are returned as Documents.

Do not override this method. It should be considered to be deprecated!

Parameters:

text_splitter (Optional[TextSplitter]) – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns:

List of Documents.

Return type:

List[Document]

Examples using AirbyteGongLoader