llm_datasource (erlangchain v0.2.0)

Summary

Types

file_id/0

-type file_id() :: binary().

id/0

-type id() :: binary().

provider/0

-type provider() :: anthropic | openai.

Functions

create(_, Name)

-spec create(provider(), binary() | string()) -> {ok, id()} | {error, term()}.

delete(_, DatasourceId)

-spec delete(provider(), id()) -> ok | {error, term()}.

files_add(_, DatasourceId, FilePaths)

-spec files_add(provider(), id(), [binary() | string()]) -> {ok, map()} | {error, term()}.

files_remove(_, DatasourceId, FileIds)

-spec files_remove(provider(), id(), [file_id()]) -> ok | {error, term()}.