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)
| 157 | |
| 158 | |
| 159 | def 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 | |
| 173 | def _content_is_only_placeholders(content: list[Any]) -> bool: |
no outgoing calls