TemplateContentProvider
is the starting point for developing plugins for the Floating AI robo. ๐ This template provides the basic framework for the plugin and demonstrates how to respond to queries for specific functionalities.
- Provides detailed information about the Tools available in Floating AI robo! ๐
- Returns the results of executing Tools to Floating AI robo! ๐ซ
- Floating AI robo recognizes providers set with jp.co.u0235.floating_ai_robo.ACTION_TOOLS as plugins. ๐ง
- Accesses the plugin using the jp.co.u0235.floating_ai_robo.permission.TOOLS_READ permission. ๐
- Floating AI robo accesses the plugin through the
query()
method. โจ - Performs a query to the
tools
endpoint, setting and returning the plugin's feature list and details in a cursor. ๐- Parameters:
source
: Data source (provider or activity).target
: Access target (URI for providers, ClassName for activities).displayName
: Tool name displayed in the app ๐ท๏ธ.functionName
: Function name recognized by AI ๐ค.description
: Function description recognized by AI ๐.displayDescription
: Function description displayed in the app ๐.parametersSchema
: JSON string representing parameters recognized by AI.
- Parameters:
- Floating AI robo executes a query to the URI set in
target
with parameters specified inparametersSchema
set as pathSegments. - The process results are set and returned in the
type
andresult
columns of the cursor.type
: Either talk, text, image, or none.talk
: Floating AI robo reads aloud the text set inresult
.text
: Floating AI robo processes and reads aloud the string set inresult
.image
: Floating AI robo processes and reads aloud the image object set inresult
.- Accepts images either base64-encoded or as a URL.
none
: Floating AI robo does nothing and transitions to a standby state.
- Floating AI robo accesses the Activity set in
target
with parameters specified inparametersSchema
set as extra. - Please end the ActivityResult with {Key: uri, Value: URI of the provider} set as Extra.
- Afterward, Floating AI robo executes a query to the Provider without parameters. The cursor settings are the same as when the source is a provider.