Ask a question to get started
Enter to sendā¢Shift+Enter new line
ContextHubBackend( self, identifier: str, *, client: Client | None = None )
BackendProtocol
identifier
str
Hub agent repo, as "owner/name" or "-/name".
"owner/name"
"-/name"
client
Client | None
None
LangSmith client. Defaults to Client().
Client()
Return linked-entry paths mapped to their repo handles.
Return True if the hub repo already exists with at least one commit.
Read file content for the requested line range.
Commit content to file_path.
content
file_path
Replace old_string with new_string; fails on multiple matches unless replace_all=True.
old_string
new_string
replace_all=True
List immediate files and subdirectories under path (non-recursive).
path
Search contents for pattern (optional path / glob filters).
pattern
glob
Return files matching pattern (path unused ā flat namespace).
Upload text files in one commit; non-UTF-8 inputs rejected per file.
Download files as raw bytes. Missing paths return file_not_found.
file_not_found
Backend that stores files in a LangSmith Hub agent repo (persistent).