MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / build_advisor_tool_schema

Function build_advisor_tool_schema

src/utils/advisor.py:159–170  ·  view source on GitHub ↗

Return the ``tools[]`` entry that opts a request into the advisor. The shape mirrors typescript/src/services/api/claude.ts:1417 — the API expects a server tool with the dated type discriminator, a literal name of ``advisor``, and the chosen advisor model in ``model``.

(model: str)

Source from the content-addressed store, hash-verified

157
158
159def build_advisor_tool_schema(model: str) -> dict[str, Any]:
160 """Return the ``tools[]`` entry that opts a request into the advisor.
161
162 The shape mirrors typescript/src/services/api/claude.ts:1417 — the API
163 expects a server tool with the dated type discriminator, a literal
164 name of ``advisor``, and the chosen advisor model in ``model``.
165 """
166 return {
167 "type": ADVISOR_TOOL_TYPE,
168 "name": ADVISOR_TOOL_NAME,
169 "model": model,
170 }
171
172
173def _content_is_only_placeholders(content: list[Any]) -> bool:

Callers 3

test_schema_shapeMethod · 0.90
_call_model_syncFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_schema_shapeMethod · 0.72