agent.createThread()
Creates a new assistant thread and first message.
Instructions, contextMode and responseFormat are immutable thread settings; follow-ups and Resume reuse them.
Minimal retains instance-global/account standing instructions and security while omitting automatic context.
Minimal admits only explicit toolNames or selected plugin routes. JSON schemas are strict and locally validated.
message is the user input; assistantMessage.message is the final text, and output.json is validated JSON when requested.
Requires readOnly: false.

