graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Hosted x_search is a splice, not a catalog tool (CodeGraff #632 / ADR 0031)
splice.py must expose splice(tools, provider, kind, enabled=True) -> list.
tools is a list of dicts (the Responses tools array). Return a new list.
- When
enabledandprovider == "xai"andkind == "responses": append{"type": "x_search"}if that type is not already present. - Chat-completions (
kind == "chat") and every other provider: returntoolsunchanged (copy ok). Never add a catalog function namedx_search. enabled=False(GRAFF_XAI_X_SEARCH=0): never splice.- Do not local-exec a resulting
x_search_call. This fixture only covers the splice.