{
  "$defs": {
    "CompactionSettings": {
      "additionalProperties": false,
      "description": "Optional overrides for the 5-tier context compaction pipeline.\n\nRarely sent by clients today — reserved for explicit compaction control.",
      "properties": {
        "tier2_minimal_prune": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tier2 Minimal Prune"
        },
        "tier3_content_to_retrieval": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tier3 Content To Retrieval"
        },
        "tier4_threshold_trim": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tier4 Threshold Trim"
        },
        "tier5_hard_compression": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tier5 Hard Compression"
        }
      },
      "title": "CompactionSettings",
      "type": "object"
    },
    "CustomTool": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "description": "Unique tool name. Must match [a-zA-Z0-9_:-]{1,64}; a ':' namespace separator is serialized to '__' at the provider boundary.",
          "title": "Name",
          "type": "string"
        },
        "description": {
          "default": "",
          "description": "Human-readable description shown to the model.",
          "title": "Description",
          "type": "string"
        },
        "input_schema": {
          "$ref": "#/$defs/CustomToolInputSchema",
          "description": "JSON Schema describing the tool's input parameters."
        }
      },
      "required": [
        "name"
      ],
      "title": "CustomTool",
      "type": "object"
    },
    "CustomToolInputSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "object",
          "default": "object",
          "title": "Type",
          "type": "string"
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonSchemaProperty"
          },
          "title": "Properties"
        },
        "required": {
          "items": {
            "type": "string"
          },
          "title": "Required",
          "type": "array"
        }
      },
      "title": "CustomToolInputSchema",
      "type": "object"
    },
    "DictionaryConfig": {
      "properties": {
        "entries": {
          "default": [],
          "items": {
            "$ref": "#/$defs/DictionaryEntry"
          },
          "title": "Entries",
          "type": "array"
        },
        "custom_entries": {
          "default": [],
          "items": {
            "$ref": "#/$defs/DictionaryEntry"
          },
          "title": "Custom Entries",
          "type": "array"
        },
        "max_inline_chars": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Max Inline Chars"
        },
        "source_count": {
          "default": 0,
          "title": "Source Count",
          "type": "integer"
        },
        "glossary": {
          "default": [],
          "items": {
            "$ref": "#/$defs/GlossaryEntry"
          },
          "title": "Glossary",
          "type": "array"
        },
        "context": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Context"
        }
      },
      "title": "DictionaryConfig",
      "type": "object"
    },
    "DictionaryEntry": {
      "properties": {
        "term": {
          "title": "Term",
          "type": "string"
        },
        "sounds_like": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Sounds Like",
          "type": "array"
        },
        "pronunciation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Pronunciation"
        },
        "ipa": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Ipa"
        },
        "definition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Definition"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Category"
        },
        "source_level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Level"
        },
        "source_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Name"
        }
      },
      "required": [
        "term"
      ],
      "title": "DictionaryEntry",
      "type": "object"
    },
    "GlossaryEntry": {
      "description": "One translation rule from an attached term list.\n\n``translation`` None with ``do_not_translate`` True means \"keep the source\nterm verbatim in every target language\". ``target_language`` None means the\nrule applies to every target language.",
      "properties": {
        "term": {
          "title": "Term",
          "type": "string"
        },
        "translation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Translation"
        },
        "target_language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target Language"
        },
        "do_not_translate": {
          "default": false,
          "title": "Do Not Translate",
          "type": "boolean"
        },
        "case_sensitive": {
          "default": false,
          "title": "Case Sensitive",
          "type": "boolean"
        }
      },
      "required": [
        "term"
      ],
      "title": "GlossaryEntry",
      "type": "object"
    },
    "ImageLora": {
      "additionalProperties": false,
      "description": "Together FLUX LoRA reference — passed through to the provider API.",
      "properties": {
        "path": {
          "description": "LoRA weights path or URL.",
          "title": "Path",
          "type": "string"
        },
        "scale": {
          "description": "Blend strength (provider-native scale).",
          "title": "Scale",
          "type": "number"
        }
      },
      "required": [
        "path",
        "scale"
      ],
      "title": "ImageLora",
      "type": "object"
    },
    "JsonSchemaObjectDocument": {
      "additionalProperties": true,
      "description": "Object-root JSON Schema — agent ``output_schema.schema`` and tool roots.",
      "properties": {
        "type": {
          "anyOf": [
            {
              "const": "object",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "object",
          "title": "Type"
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonSchemaProperty"
          },
          "title": "Properties"
        },
        "required": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Required"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/JsonValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Additionalproperties"
        }
      },
      "title": "JsonSchemaObjectDocument",
      "type": "object"
    },
    "JsonSchemaProperty": {
      "additionalProperties": true,
      "description": "One property in a tool parameter schema or structured-output object.",
      "properties": {
        "type": {
          "anyOf": [
            {
              "enum": [
                "array",
                "boolean",
                "integer",
                "null",
                "number",
                "object",
                "string"
              ],
              "type": "string"
            },
            {
              "items": {
                "enum": [
                  "array",
                  "boolean",
                  "integer",
                  "null",
                  "number",
                  "object",
                  "string"
                ],
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Type"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Description"
        },
        "enum": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/JsonValue"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Enum"
        },
        "default": {
          "anyOf": [
            {
              "$ref": "#/$defs/JsonValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "items": {
          "anyOf": [
            {
              "$ref": "#/$defs/JsonSchemaProperty"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "properties": {
          "anyOf": [
            {
              "additionalProperties": {
                "$ref": "#/$defs/JsonSchemaProperty"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Properties"
        },
        "required": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Required"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/JsonValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Additionalproperties"
        }
      },
      "title": "JsonSchemaProperty",
      "type": "object"
    },
    "JsonValue": {},
    "MediaRef": {
      "additionalProperties": true,
      "description": "Canonical media reference shared across every API that takes media.",
      "properties": {
        "file_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "cld_files UUID. Preferred form; returned by POST /files/upload.",
          "title": "File Id"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Any URL we issued (share link, /files/{id}/url, /files/{id}/download, raw S3 URL) or a truly external https://. The server recognizes ours and resolves to bytes; external URLs are passed through to providers that fetch them, or downloaded as a last resort.",
          "title": "Url"
        },
        "file_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Native cloud URI: s3://bucket/key, gs://..., azure://...",
          "title": "File Uri"
        },
        "mime_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Hint from the client. Server REPLACES with the canonical cld_files.mime_type when the reference resolves to one of our files.",
          "title": "Mime Type"
        },
        "metadata": {
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          },
          "description": "Free-form per-API metadata. Opaque to the resolver.",
          "title": "Metadata",
          "type": "object"
        },
        "vision_class": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional name of a registered vision class (e.g. 'anthropic_opus_hires', 'gemini3_high'). When set, resolution produces a derived variant of the master file using the host-registered encoder for the 'vision' family. Wire-stable: frontends and tools may pin a specific variant; otherwise the unified client annotates this field based on the target model.",
          "title": "Vision Class"
        },
        "base64_data": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Inline bytes (base64). Set by resolver when needs_bytes=True.",
          "title": "Base64 Data"
        },
        "resolved_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Fresh presigned URL the resolver minted (provider-fetchable).",
          "title": "Resolved Url"
        },
        "file_size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Resolved byte size from the canonical file row or downloaded content.",
          "title": "File Size"
        },
        "owner_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Owner user id loaded from the canonical file row during resolution.",
          "title": "Owner Id"
        },
        "is_ours": {
          "default": false,
          "description": "True iff the resolver matched the reference to a cld_files row.",
          "title": "Is Ours",
          "type": "boolean"
        },
        "resolver_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Set when resolution failed; surface to the caller for logging.",
          "title": "Resolver Error"
        },
        "is_resolved": {
          "default": false,
          "description": "Set to True by the boundary normalizer. Resolvers short-circuit when this is True (idempotency). Internal — clients do not set.",
          "title": "Is Resolved",
          "type": "boolean"
        }
      },
      "title": "MediaRef",
      "type": "object",
      "x-contract-dynamic": "subclasses carry provider-display fields as extras; the canonical identifiers stay declared here"
    },
    "OutputSchemaEnvelope": {
      "additionalProperties": false,
      "description": "OpenAI ``json_schema`` inner envelope — matches ``agx_agent.output_schema``.",
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "schema": {
          "anyOf": [
            {
              "$ref": "#/$defs/JsonSchemaObjectDocument"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "strict": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Strict"
        }
      },
      "title": "OutputSchemaEnvelope",
      "type": "object"
    },
    "ResponseFormatJsonObject": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "json_object",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "title": "ResponseFormatJsonObject",
      "type": "object"
    },
    "ResponseFormatJsonSchema": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "json_schema",
          "title": "Type",
          "type": "string"
        },
        "json_schema": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutputSchemaEnvelope"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "schema": {
          "anyOf": [
            {
              "$ref": "#/$defs/JsonSchemaObjectDocument"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "strict": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Strict"
        }
      },
      "required": [
        "type"
      ],
      "title": "ResponseFormatJsonSchema",
      "type": "object"
    },
    "ResponseFormatText": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "text",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "title": "ResponseFormatText",
      "type": "object"
    },
    "ServedVia": {
      "additionalProperties": false,
      "description": "The one device a chat model runs on for this call.\n\n* ``provider`` — ``\"device\"``: a person's Matrx 2 computer (the only kind today).\n* ``app_instance_id`` — the device (``public.app_instances.id``).\n* ``local_model_id`` — the device's own key for the model it loads; for a person's own\n  uncatalogued model file it is the ``ai.device_model_file.id``.\n* ``variant_id`` — the catalog variant (``ai.model_variant.id``) installed, when known.",
      "properties": {
        "provider": {
          "const": "device",
          "title": "Provider",
          "type": "string"
        },
        "app_instance_id": {
          "title": "App Instance Id",
          "type": "string"
        },
        "local_model_id": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Local Model Id",
          "type": "string"
        },
        "variant_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Variant Id"
        }
      },
      "required": [
        "provider",
        "app_instance_id",
        "local_model_id"
      ],
      "title": "ServedVia",
      "type": "object"
    },
    "TtsDialogueTurn": {
      "additionalProperties": false,
      "description": "One pre-rendered dialogue turn for ElevenLabs ``text_to_dialogue`` — the\npodcast pipeline's ``[{text, voice_id}]`` shape (built per run by\n``_dialogue_to_elevenlabs_turns``). Omitting this from the union broke every\n3+-host podcast audio stage the day LLMParams became typed (2026-08-08).",
      "properties": {
        "text": {
          "description": "Spoken text for this turn.",
          "title": "Text",
          "type": "string"
        },
        "voice_id": {
          "description": "Provider-native voice id speaking this turn.",
          "title": "Voice Id",
          "type": "string"
        }
      },
      "required": [
        "text",
        "voice_id"
      ],
      "title": "TtsDialogueTurn",
      "type": "object"
    },
    "TtsVoiceSpeaker": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "description": "Speaker label in multi-speaker TTS scripts.",
          "title": "Name",
          "type": "string"
        },
        "voice": {
          "description": "Provider-native voice id or name.",
          "title": "Voice",
          "type": "string"
        },
        "gender": {
          "default": "",
          "description": "Optional speaker gender ('male' / 'female'). Never sent to a provider — it lets TTSVoiceConfig pair voices with the SCRIPT's speaker labels by gender when the two disagree, instead of positionally (which inverted speakers: a male character voiced female).",
          "title": "Gender",
          "type": "string"
        }
      },
      "required": [
        "name",
        "voice"
      ],
      "title": "TtsVoiceSpeaker",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Model"
    },
    "offering_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Offering Id"
    },
    "served_via": {
      "anyOf": [
        {
          "$ref": "#/$defs/ServedVia"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "conversation_instructions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Conversation Instructions"
    },
    "max_output_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Max Output Tokens"
    },
    "temperature": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Temperature"
    },
    "top_p": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Top P"
    },
    "top_k": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Top K"
    },
    "frequency_penalty": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Frequency Penalty"
    },
    "presence_penalty": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Presence Penalty"
    },
    "tool_choice": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "none",
            "required"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Tool Choice"
    },
    "parallel_tool_calls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Parallel Tool Calls"
    },
    "reasoning_effort": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "high",
            "low",
            "max",
            "medium",
            "minimal",
            "none",
            "xhigh"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reasoning Effort"
    },
    "reasoning_summary": {
      "anyOf": [
        {
          "enum": [
            "always",
            "auto",
            "concise",
            "detailed",
            "never"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reasoning Summary"
    },
    "visualization": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "off"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Visualization"
    },
    "thinking_level": {
      "anyOf": [
        {
          "enum": [
            "high",
            "low",
            "medium",
            "minimal"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Thinking Level"
    },
    "include_thoughts": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Include Thoughts"
    },
    "thinking_budget": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Thinking Budget"
    },
    "clear_thinking": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Clear Thinking"
    },
    "disable_reasoning": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Disable Reasoning"
    },
    "response_format": {
      "anyOf": [
        {
          "discriminator": {
            "mapping": {
              "json_object": "#/$defs/ResponseFormatJsonObject",
              "json_schema": "#/$defs/ResponseFormatJsonSchema",
              "text": "#/$defs/ResponseFormatText"
            },
            "propertyName": "type"
          },
          "oneOf": [
            {
              "$ref": "#/$defs/ResponseFormatText"
            },
            {
              "$ref": "#/$defs/ResponseFormatJsonObject"
            },
            {
              "$ref": "#/$defs/ResponseFormatJsonSchema"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Response Format"
    },
    "stop_sequences": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Stop Sequences"
    },
    "stream": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Stream"
    },
    "store": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Store"
    },
    "extended_prompt_cache": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Extended Prompt Cache"
    },
    "previous_interaction_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Previous Interaction Id"
    },
    "task": {
      "anyOf": [
        {
          "enum": [
            "edit",
            "image_to_video",
            "reference_to_video",
            "text_to_video"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Task"
    },
    "verbosity": {
      "anyOf": [
        {
          "enum": [
            "high",
            "low",
            "medium"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Verbosity"
    },
    "internal_web_search": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Internal Web Search"
    },
    "internal_url_context": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Internal Url Context"
    },
    "internal_x_search": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Internal X Search"
    },
    "aspect_ratio": {
      "anyOf": [
        {
          "enum": [
            "16:9",
            "1:1",
            "21:9",
            "2:3",
            "3:2",
            "3:4",
            "4:3",
            "4:5",
            "5:4",
            "9:16"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Aspect Ratio"
    },
    "width": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Width"
    },
    "height": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Height"
    },
    "count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Count"
    },
    "render_quality": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "high",
            "low",
            "medium"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Render Quality"
    },
    "background": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "opaque",
            "transparent"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Background"
    },
    "output_compression": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Output Compression"
    },
    "moderation": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "low"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Moderation"
    },
    "input_fidelity": {
      "anyOf": [
        {
          "enum": [
            "high",
            "low"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Input Fidelity"
    },
    "partial_images": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Partial Images"
    },
    "style": {
      "anyOf": [
        {
          "enum": [
            "natural",
            "vivid"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Style"
    },
    "reference_strength": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reference Strength"
    },
    "tts_voice": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "$ref": "#/$defs/TtsVoiceSpeaker"
          },
          "type": "array"
        },
        {
          "items": {
            "$ref": "#/$defs/TtsDialogueTurn"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Tts Voice"
    },
    "audio_format": {
      "anyOf": [
        {
          "enum": [
            "aac",
            "alaw",
            "flac",
            "mp3",
            "mulaw",
            "ogg",
            "opus",
            "pcm",
            "wav"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Audio Format"
    },
    "performance_direction": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Performance Direction"
    },
    "speech_speed": {
      "anyOf": [
        {
          "maximum": 4.0,
          "minimum": 0.25,
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Speech Speed"
    },
    "turn_pause_ms": {
      "anyOf": [
        {
          "maximum": 10000,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Turn Pause Ms"
    },
    "language_code": {
      "anyOf": [
        {
          "maxLength": 16,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Language Code"
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Duration Seconds"
    },
    "resolution": {
      "anyOf": [
        {
          "enum": [
            "1080p",
            "1K",
            "2K",
            "480p",
            "4K",
            "4k",
            "720p"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Resolution"
    },
    "fps": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Fps"
    },
    "steps": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Steps"
    },
    "seed": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Seed"
    },
    "guidance_scale": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Guidance Scale"
    },
    "encode_quality": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Encode Quality"
    },
    "negative_prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Negative Prompt"
    },
    "output_format": {
      "anyOf": [
        {
          "enum": [
            "base64",
            "jpeg",
            "json_object",
            "json_schema",
            "png",
            "text",
            "url",
            "webp"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Output Format"
    },
    "frame_images": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MediaRef"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Frame Images"
    },
    "reference_images": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MediaRef"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reference Images"
    },
    "image_loras": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ImageLora"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Loras"
    },
    "disable_safety_checker": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Disable Safety Checker"
    },
    "generate_audio": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Generate Audio"
    },
    "enhance_prompt": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Enhance Prompt"
    },
    "camera_control": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Camera Control"
    },
    "image_input": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaRef"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "image_inputs": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MediaRef"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Inputs"
    },
    "mask": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaRef"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "last_frame_image": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaRef"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "video_input": {
      "anyOf": [
        {
          "$ref": "#/$defs/MediaRef"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "video_action": {
      "anyOf": [
        {
          "enum": [
            "edit",
            "extend",
            "generate"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Video Action"
    },
    "custom_tools": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CustomTool"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Custom Tools"
    },
    "mcp_servers": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Mcp Servers"
    },
    "compaction_settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/CompactionSettings"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "detected_contexts": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Detected Contexts"
    },
    "dictionary": {
      "anyOf": [
        {
          "$ref": "#/$defs/DictionaryConfig"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "tts_quality": {
      "anyOf": [
        {
          "enum": [
            "fast",
            "high_quality"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Tts Quality"
    },
    "max_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `max_output_tokens`. The server normalizes this name before validation and dispatch; new callers should send `max_output_tokens`.",
      "title": "Max Tokens",
      "x-canonical-name": "max_output_tokens"
    },
    "n": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`.",
      "title": "N",
      "x-canonical-name": "count"
    },
    "num_outputs": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`.",
      "title": "Num Outputs",
      "x-canonical-name": "count"
    },
    "number_of_images": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `count`. The server normalizes this name before validation and dispatch; new callers should send `count`.",
      "title": "Number Of Images",
      "x-canonical-name": "count"
    },
    "quality": {
      "anyOf": [
        {
          "enum": [
            "auto",
            "high",
            "low",
            "medium"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `render_quality`. The server normalizes this name before validation and dispatch; new callers should send `render_quality`.",
      "title": "Quality",
      "x-canonical-name": "render_quality"
    },
    "output_quality": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `encode_quality`. The server normalizes this name before validation and dispatch; new callers should send `encode_quality`.",
      "title": "Output Quality",
      "x-canonical-name": "encode_quality"
    },
    "seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `duration_seconds`. The server normalizes this name before validation and dispatch; new callers should send `duration_seconds`.",
      "title": "Seconds",
      "x-canonical-name": "duration_seconds"
    },
    "duration": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "deprecated": true,
      "description": "Deprecated input alias for `duration_seconds`. The server normalizes this name before validation and dispatch; new callers should send `duration_seconds`.",
      "title": "Duration",
      "x-canonical-name": "duration_seconds"
    }
  },
  "title": "LLMParams",
  "type": "object"
}
