resolve_schema_path()
Resolve a JSON schema into the argument form the backend’s CLI expects.
Usage
resolve_schema_path(
backend,
schema,
)Parameters
backend: LlmBackend-
The backend the schema is destined for.
schema: str | None-
The JSON schema string, or
None.
Returns
str | None-
A temp-file path for CodexCliBackend, the schema unchanged for other backends, or
Nonewithout a schema.