Provider interface
- interface ProviderInterface
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Contract\ Provider Interface
Contract for LLM providers.
- configure ( array $config) : void
-
Configure the provider with API key and settings.
- param array $config
-
Configuration key-value pairs
- supportsFeature ( string|ModelCapability $feature) : bool
-
Check if provider supports a specific feature.
- chatCompletion ( array $messages, array $options = []) : CompletionResponse
-
Execute chat completion.
- param array $messages
-
Messages with
roleandcontent. Content can be a string (plain text) or an array of content blocks for multimodal input (text, image_url, document).
- complete ( string $prompt, array $options = []) : CompletionResponse
-
Execute simple completion from a prompt.
- interface VisionCapableInterface
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Contract\ Vision Capable Interface
Contract for providers supporting vision/image analysis.
- interface StreamingCapableInterface
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Contract\ Streaming Capable Interface
Contract for providers supporting streaming.
- interface ToolCapableInterface
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Contract\ Tool Capable Interface
Contract for providers supporting tool/function calling.