compass.llm.calling.LLMCaller#
- class LLMCaller(llm_service, usage_tracker=None, **kwargs)[source]#
Bases:
BaseLLMCallerSimple LLM caller, with no memory and no parsing utilities
See also
ChatLLMCallerChat-like LLM calling functionality.
StructuredLLMCallerStructured (JSON) LLM calling functionality.
- Parameters:
llm_service (
Service) – LLM service used for queries.usage_tracker (
UsageTracker, optional) – Optional tracker instance to monitor token usage during LLM calls. By default,None.**kwargs –
Keyword arguments to be passed to the underlying service processing function (i.e.
llm_service.call(**kwargs)). Should not contain the following keys:usage_sub_label
messages
These arguments are provided by this caller object.
Methods
call(sys_msg, content[, usage_sub_label])Call LLM