LLMService

LLMService
base class

Base class for LLM services.

Methods

register_function
method

Registers a function handler. Use None as function_name to handle all functions.

def register_function(
  self,
  function_name: str | None,
  callback,
  start_callback=None
)
unregister_function
method

Removes a registered function handler.

def unregister_function(self, function_name: str | None)
has_function
method

Checks if a function handler is registered.

def has_function(self, function_name: str) -> bool
request_image_frame
async method

Requests an image from a user.

async def request_image_frame(
  self,
  user_id: str,
  *,
  text_content: str | None = None
)