Zamok Kiosk API
Preparing search index...
module-ai-gemini/lib/browser/reducers
gemini
Function gemini
gemini
(
state
?:
AiGeminiState
,
action
:
|
PayloadAction
<
"AI_GEMINI/SEND_PAGE_CONTENT"
,
{
functionId
?:
string
;
reason
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/CLICK_ELEMENT"
,
{
elementIdentifier
:
string
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/SCROLL_TO_ELEMENT"
,
{
elementIdentifier
:
string
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/FILL_INPUT_FIELD"
,
{
fieldIdentifier
:
string
;
functionId
?:
string
;
textToFill
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/BROWSER_NAVIGATION"
,
{
direction
:
"BACK"
|
"FORWARD"
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/MUTE_VOICE_INPUT"
,
{
functionId
?:
string
;
reason
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/PROCESS_USER_MESSAGE"
,
{
contextData
?:
Record
<
string
,
any
>
;
includeContext
?:
boolean
;
message
:
GeminiMessage
;
}
,
>
|
PayloadAction
<
"AI_GEMINI/SET_LOADING"
,
boolean
>
|
PayloadAction
<
"AI_GEMINI/SET_RESPONSE"
,
GeminiResponse
>
|
PayloadAction
<
"AI_GEMINI/SET_ERROR"
,
GeminiError
>
|
EmptyAction
<
"AI_GEMINI/CLEAR_ERROR"
>
|
EmptyAction
<
"AI_GEMINI/RESET_STATE"
>
|
PayloadAction
<
"AI_GEMINI/START_LIVE_SESSION"
,
{
dialogOpenReason
?:
DialogOpenReason
;
faceDetectionWelcomeMessage
?:
string
;
initialMessage
:
string
;
}
,
>
|
PayloadAction
<
"AI_GEMINI/SEND_LIVE_MESSAGE"
,
string
>
|
EmptyAction
<
"AI_GEMINI/END_LIVE_SESSION"
>
|
EmptyAction
<
"AI_GEMINI/LIVE_SESSION_OPENED"
>
|
PayloadAction
<
"AI_GEMINI/LIVE_SESSION_ERROR"
,
GeminiError
>
|
PayloadAction
<
"AI_GEMINI/RECEIVE_LIVE_SERVER_MESSAGE"
,
LiveServerMessage
,
>
|
EmptyAction
<
"AI_GEMINI/CLEAR_CHAT_SESSION"
>
|
PayloadAction
<
"AI_GEMINI/SET_WEBVIEW_REF"
,
HTMLWebViewElement
>
|
PayloadAction
<
"AI_GEMINI/SET_WEBVIEW_SUMMARY"
,
WebviewSummary
>
|
PayloadAction
<
"AI_GEMINI/HIGHLIGHT_ELEMENT"
,
{
functionId
?:
string
;
href
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/NAVIGATE_TO_URL"
,
{
functionId
?:
string
;
href
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_CUSTOM_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_REDUX_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_KIOSK_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/RECEIVE_AUDIO_OUTPUT"
,
AudioData
>
|
PayloadAction
<
"AI_GEMINI/UPDATE_TOKEN_COUNT"
,
{
inputTokens
:
number
;
outputTokens
:
number
;
turnTotalTokens
:
number
}
,
>
,
)
:
AiGeminiState
Parameters
state
:
AiGeminiState
= initialState
action
:
|
PayloadAction
<
"AI_GEMINI/SEND_PAGE_CONTENT"
,
{
functionId
?:
string
;
reason
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/CLICK_ELEMENT"
,
{
elementIdentifier
:
string
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/SCROLL_TO_ELEMENT"
,
{
elementIdentifier
:
string
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/FILL_INPUT_FIELD"
,
{
fieldIdentifier
:
string
;
functionId
?:
string
;
textToFill
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/BROWSER_NAVIGATION"
,
{
direction
:
"BACK"
|
"FORWARD"
;
functionId
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/MUTE_VOICE_INPUT"
,
{
functionId
?:
string
;
reason
?:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/PROCESS_USER_MESSAGE"
,
{
contextData
?:
Record
<
string
,
any
>
;
includeContext
?:
boolean
;
message
:
GeminiMessage
;
}
,
>
|
PayloadAction
<
"AI_GEMINI/SET_LOADING"
,
boolean
>
|
PayloadAction
<
"AI_GEMINI/SET_RESPONSE"
,
GeminiResponse
>
|
PayloadAction
<
"AI_GEMINI/SET_ERROR"
,
GeminiError
>
|
EmptyAction
<
"AI_GEMINI/CLEAR_ERROR"
>
|
EmptyAction
<
"AI_GEMINI/RESET_STATE"
>
|
PayloadAction
<
"AI_GEMINI/START_LIVE_SESSION"
,
{
dialogOpenReason
?:
DialogOpenReason
;
faceDetectionWelcomeMessage
?:
string
;
initialMessage
:
string
;
}
,
>
|
PayloadAction
<
"AI_GEMINI/SEND_LIVE_MESSAGE"
,
string
>
|
EmptyAction
<
"AI_GEMINI/END_LIVE_SESSION"
>
|
EmptyAction
<
"AI_GEMINI/LIVE_SESSION_OPENED"
>
|
PayloadAction
<
"AI_GEMINI/LIVE_SESSION_ERROR"
,
GeminiError
>
|
PayloadAction
<
"AI_GEMINI/RECEIVE_LIVE_SERVER_MESSAGE"
,
LiveServerMessage
>
|
EmptyAction
<
"AI_GEMINI/CLEAR_CHAT_SESSION"
>
|
PayloadAction
<
"AI_GEMINI/SET_WEBVIEW_REF"
,
HTMLWebViewElement
>
|
PayloadAction
<
"AI_GEMINI/SET_WEBVIEW_SUMMARY"
,
WebviewSummary
>
|
PayloadAction
<
"AI_GEMINI/HIGHLIGHT_ELEMENT"
,
{
functionId
?:
string
;
href
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/NAVIGATE_TO_URL"
,
{
functionId
?:
string
;
href
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_CUSTOM_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_REDUX_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/EXECUTE_KIOSK_TOOL"
,
{
args
:
Record
<
string
,
any
>
;
functionId
:
string
;
toolName
:
string
}
,
>
|
PayloadAction
<
"AI_GEMINI/RECEIVE_AUDIO_OUTPUT"
,
AudioData
>
|
PayloadAction
<
"AI_GEMINI/UPDATE_TOKEN_COUNT"
,
{
inputTokens
:
number
;
outputTokens
:
number
;
turnTotalTokens
:
number
}
,
>
Returns
AiGeminiState
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Zamok Kiosk API
Loading...