Docs /Templates/ sinapsis_langchain_readers

GithubFileLoaderWrapper

sinapsis_langchain_readersLangChaindocumentsdocument_loadingdynamicfiles

Python template · sinapsis_langchain_readers.templates.langchain_data_readers_no_force_init

Overview

Dynamic Template to load documents from Langchain document_loaders module without forced initialization. This variant does not force initialization as a method.

Usage examples:

agent: name: my_test_agent templates: - template_name: InputTemplate class_name: InputTemplate attributes: {} - template_name: DocugamiLoaderWrapper class_name: DocugamiLoaderWrapper template_input: InputTemplate attributes: add_document_as_text_packet: false docugamiloader_init: api: https://api.docugami.com/v1preview1 access_token: null max_text_length: 4096 min_text_length: 32 max_metadata_length: 512 include_xml_tags: false parent_hierarchy_levels: 0 parent_id_key: doc_id sub_chunk_tables: false whitespace_normalize_text: true docset_id: null document_ids: null file_paths: null include_project_metadata_in_doc_metadata: true

GithubFileLoader — inherited documentation

Load GitHub FileCreate a new model by parsing and validating input data from keyword arguments.

Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

`self` is explicitly positional-only to allow `self` as a field name.

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis_langchain_readers==1.0.0
uv pip install sinapsis_langchain_readers==1.0.0
uv add sinapsis_langchain_readers==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
githubfileloader_initRequired
GithubFileLoaderAttributes
Required
Default: null
repo
str
Optional
Default: null
branch
str
Optional
Default: "main"
file_filter
typing.Optional[typing.Callable[[str], bool]]
Optional
Default: null
access_token
str
Optional
Default: null
github_api_url
str
Optional
Default: "https://api.github.com"
add_document_as_text_packet
Whether to add document as text packet or not. githubfileloader_init repo <class 'str'>: default: None access_token <class 'str'>: default: None github_api_url <class 'str'>: default: https://api.github.com branch… Read full field description

Whether to add document as text packet or not. githubfileloader_init repo <class 'str'>: default: None access_token <class 'str'>: default: None github_api_url <class 'str'>: default: https://api.github.com branch <class 'str'>: default: main file_filter typing.Optional[typing.Callable[[str], bool]]: default: None

bool
Optional
Default: false

Configuration example

Generated from documented defaults. Replace any placeholders and complete required nested settings before running.

yaml
templates:
  - template_name: "GithubFileLoaderWrapper"
    class_name: "GithubFileLoaderWrapper"
    attributes:
      githubfileloader_init:
        repo: null
        branch: "main"
        file_filter: null
        access_token: null
        github_api_url: "https://api.github.com"
      add_document_as_text_packet: false

Inheritance

Immediate parent: sinapsis_langchain_readers.templates.langchain_data_readers_no_force_init.LangChainDataReaderNoForceInit

Environment variables

Environment definitions belong to their canonical Python modules.

SINAPSIS_BUILD_DOCS · defined elsewhere