{"version":"2.1.333","anchor":"modelcomplete-gains-schema-and-thinking-options","canonical_anchor":"modelcomplete-gains-schema-and-thinking-options","heading":"Plugin hooks can ask the model for structured output and thinking","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/modelcomplete-gains-schema-and-thinking-options","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin hooks can ask the model for structured output and thinking\n\nThe model call available to plugin function hooks now accepts a JSON schema for its output and a thinking option\n\n**Unclear.** It is not clear whether plugins can use these new options by default.\n\n**What**\n\nPlugins can add function hooks, which are pieces of code that run at set points during a session. Those hooks have a call they can use to ask the model for a reply. Before, that call accepted a prompt, a system prompt, a token limit, an effort level and a timeout. It now also accepts:\n\n- a schema: a JSON schema the reply must follow\n\n- a thinking option\n\nThe reply now also reports which model answered, and whether the schema was actually applied (`isSchemaApplied`).\n\n**Why**\n\nPlugin authors can get replies in a fixed, machine-readable shape from inside a hook, and can check whether that shape was enforced.\n\n- Area: Plugin Hooks\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}