GooglePlugin
This plugin provides integration with Google's generative AI models.
A typical JSON request body looks like this:
{
model : "gemini-1.5-pro",
contents : [
{
role : "user",
parts : [
{ text : "Hello" }
]
},
{
role : "model",
parts : [
{ text : "Hi there" }
]
}
]
systemInstruction : {
parts : [
{ text : "You are a helpful assistant" }
]
},
tools : [
{
functionDeclarations : [
{
name : "add",
description : "Add two numbers",
parameters : {
type : "object",
properties : {
a : { type : "number", description : "First number" },
b : { type : "number", description : "Second number" }
},
required : ["a", "b"]
}
}
]
}
],
generationConfig : {
temperature : 0
}
}
A typical text response looks like this
{
candidates : [
{
role : "model",
content : {
parts : [
{ text : "Hello! How can I assist you today" }
]
}
}
],
}
A typical function call response looks like this
{
candidates : [
{
role : "model",
content : {
parts : [
{
functionCall : {
name : "add",
args : { a : 1, b : 2 }
}
}
]
}
}
]
}
And the function call response from the tool should look like this:
{
role : "user",
parts : [
{
functionResult : {
name : "add",
response : "3"
}
}
]
}
Configs
9
Configs
9Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Other
Properties
17
Properties
17Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of GooglePlugin class, or subclass thereof.
Identifies an object as an instance of GooglePlugin class, or subclass thereof.
isAbstractApiPluginAbstractApiPlugin
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
Functions
31
Functions
31Configuration
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
doDisableInstancePlugin
downloadTestCaseBase
resolveCallbackBase
updateLocalizationLocalizable
Other
addListenerEvents
beforeApplyTrainingDataAbstractApiPlugin
beforePostAbstractApiPlugin
extractMessageAbstractApiPlugin
hasListenerEvents
onEvents
relayAllEvents
removeAllListenersEvents
removeListenerEvents
resumeEventsEvents
suspendEventsEvents
triggerEvents
unEvents
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
6
Typedefs
6AIFetchBodyAbstractApiPlugin
AIMessageAbstractApiPlugin
AIToolAbstractApiPlugin
AIToolCallAbstractApiPlugin
AITrainingDataEntryAbstractApiPlugin
BryntumListenerConfigEvents