interface documentation

class IZMSLLMConnector(Interface): (source)

View In Hierarchy

Undocumented

Method chat Send messages to the configured LLM provider and get a response.
Method get_provider_info Get information about the currently configured LLM provider.
Method getConfProperty Return a connector configuration property.
def chat(self, messages, **kwargs): (source)

Send messages to the configured LLM provider and get a response.

Parameters
messages:list or strList of message dicts [{"role": "user", "content": "..."}] or a plain string for simple single-turn conversations.
**kwargsAdditional provider-specific parameters (temperature, top_p, etc.)
Returns
dictResponse dict in OpenAI /v1/chat/completions format, or error dict.
def get_provider_info(self): (source)

Get information about the currently configured LLM provider.

Returns
dictDict with keys: provider, model, endpoint, has_api_key, etc.
def getConfProperty(self, key, default=None): (source)

Return a connector configuration property.

Parameters
key:strProperty key (e.g. 'llm.provider', 'llm.api.key')
defaultDefault value if key is not set.
Returns
Property value or default.