Skip to content

Add TrussChainlet and TrussHandle to the chains SDK reference - #2553

Open
pat-baseten wants to merge 4 commits into
mainfrom
pat/di-2156-sdk-reference
Open

Add TrussChainlet and TrussHandle to the chains SDK reference#2553
pat-baseten wants to merge 4 commits into
mainfrom
pat/di-2156-sdk-reference

Conversation

@pat-baseten

Copy link
Copy Markdown
Contributor

TrussChainlet and TrussHandle went public but are missing from the doc_gen section lists, so the generated SDK reference on docs.baseten.co doesn't cover them (and the generator errors on unmapped symbols, including WeightsSource, which this maps as undocumented). Companion to docs PR basetenlabs/docs.baseten.co#1211.

Fixes DI-2156

Maps both classes in generate_reference.py (TrussChainlet under Chainlet
classes, TrussHandle under Core next to StubBase) and adds WeightsSource
to UNDOCUMENTED so the generator's completeness check passes again. Adds
the corresponding sections to generated-reference.mdx and
API-reference.mdx and regenerates reference.patch, which now applies
cleanly with stock patch.
@linear

linear Bot commented Jul 15, 2026

Copy link
Copy Markdown

DI-2156

…th in code spans

The trailing-whitespace hook strips diff context lines, which is what
malformed reference.patch. HTML entities inside code spans render
literally, so use a raw <sync_path>.
sys.path the script's own directory so the mdx_adapter sphinx extension
resolves regardless of CWD, and record in the README that newer
sphinx/sphinx-markdown-builder versions silently fall back to .md output
with degraded tables.
'Non-entry leaf chain member' becomes 'chain member that only receives
calls' in the docstring and both reference layers.

class TrussChainlet(private_types.ABCChainlet, metaclass=abc.ABCMeta):
"""Declares an existing Truss directory as a non-entry leaf chain member.
"""Declares an existing Truss directory as a chain member that only receives calls.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: "chain member" seems like a drift from original terminology. I think just "chainlet" is fine, or "dependency chainlet".

"truss_chains.run_local",
"truss_chains.DeployedServiceDescriptor",
"truss_chains.StubBase",
"truss_chains.remote_chainlet.truss_chainlet.TrussHandle",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this is declared non-public above, which one is intended? Currently it seems to be included in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants