UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

19 lines • 1.22 kB
import { type ReactNode } from 'react'; import { type GenerativeUIFallback, type GenuiProviderProps } from '../../react/core/genui/generative-ui.js'; import type { GenuiActionHandler } from './sandbox.js'; /** The item's persisted text, as a `<Text>` — the web default draws a `<span>`, which RN cannot. */ export declare const nativeGenuiFallback: GenerativeUIFallback; /** * `GenuiProvider` for React Native: the same provider (the same shared contexts — `GenerativeUI` * and `useGenerativeUI` read it as on the web), with `fallback` defaulting to * {@link nativeGenuiFallback} so an unknown or failing component never draws a DOM element. */ export declare function GenuiProvider({ fallback, ...props }: GenuiProviderProps): import("react").JSX.Element; /** Where UI actions go — a sandbox's `agent.send(…)`. Typically the chat's `sendUiAction`. */ export declare function GenuiActionProvider({ onAction, children, }: { onAction: GenuiActionHandler; children?: ReactNode; }): import("react").JSX.Element; /** The enclosing {@link GenuiActionProvider}'s handler, or `null` outside one. */ export declare function useGenuiAction(): GenuiActionHandler | null; //# sourceMappingURL=provider.d.ts.map