Option classes
ChatOptions
- class ChatOptions
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Service\ Option\ Chat Options
Typed options for chat operations.
- static factual ( )
-
Create options optimized for factual responses (temperature: 0.1).
- returns
-
ChatOptions
- withResponseFormat ( string $format) : self
-
Request an output format:
text,jsonormarkdown.jsonactivates the provider's native JSON mode on every adapter (ADR-128).
- withResponseSchema ( array $schema) : self
-
Attach a strict-subset JSON schema (ADR-126) the provider should enforce natively where it can. Set automatically by
completeStructured(); the local strict validation remains authoritative either way.