LiveFunctions class
Service for managing and executing AI Tool Calls (Function Calling).
This service acts as the bridge between the LLM's intent to use a tool and the actual execution or configuration of that tool.
Properties
- client → HttpClient
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Checks if the service is ready for requests.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callFunction(
{required FunctionCall functionCall}) → Future< AppResponse< TriggerResponse< >FunctionCallResponse> > - Executes a specific tool/function call.
-
getLiveFunctions(
) → Future< AppResponse< TriggerResponse< >FunctionDeclaration> > - Retrieves a list of all function declarations available to the AI.
-
headers(
) → Map< String, String> -
initialize(
String apiKey) → void - Initializes the service with an API key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggleFunctionState(
{required FunctionCall functionCall}) → Future< AppResponse< TriggerResponse< >ToggleStatusResponse> > - Enables or disables a specific function for the AI model.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LiveFunctions
-
final