forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheadless.ts
More file actions
64 lines (58 loc) · 2.12 KB
/
Copy pathheadless.ts
File metadata and controls
64 lines (58 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* Headless (platform-agnostic) exports from @copilotkit/react-core/v2.
*
* No CSS, no web UI components, no DOM dependencies.
* Used by @copilotkit/react-native.
*/
// Re-export from context (which is external in this build) so the .d.ts
// references the same type declaration. This avoids a nominal type mismatch
// caused by private class members being declared in two separate .d.ts files.
export { CopilotKitCoreReact } from "./context";
export type { CopilotKitCoreReactConfig } from "./context";
// Chat configuration provider (no UI, just context)
export {
CopilotChatConfigurationProvider,
useCopilotChatConfiguration,
CopilotChatDefaultLabels,
type CopilotChatLabels,
type CopilotChatConfigurationValue,
type CopilotChatConfigurationProviderProps,
} from "./providers/CopilotChatConfigurationProvider";
// Platform-agnostic hooks
export { useAgent, type UseAgentUpdate } from "./hooks/use-agent";
export { useFrontendTool } from "./hooks/use-frontend-tool";
export { useComponent } from "./hooks/use-component";
export { useHumanInTheLoop } from "./hooks/use-human-in-the-loop";
export {
useInterrupt,
type UseInterruptConfig,
type InterruptEvent,
type InterruptHandlerProps,
type InterruptRenderProps,
} from "./hooks/use-interrupt";
export { useSuggestions } from "./hooks/use-suggestions";
export { useConfigureSuggestions } from "./hooks/use-configure-suggestions";
export {
useAgentContext,
type AgentContextInput,
type JsonSerializable,
} from "./hooks/use-agent-context";
export {
useThreads,
type Thread,
type UseThreadsInput,
type UseThreadsResult,
} from "./hooks/use-threads";
export {
useRenderTool,
type RenderToolProps,
type RenderToolInProgressProps,
type RenderToolExecutingProps,
type RenderToolCompleteProps,
} from "./hooks/use-render-tool";
export { defineToolCallRenderer } from "./types/defineToolCallRenderer";
// Platform-agnostic types
export type { ReactFrontendTool } from "./types/frontend-tool";
export type { ReactHumanInTheLoop } from "./types/human-in-the-loop";
// Platform-agnostic capability introspection
export { useCapabilities } from "./hooks/use-capabilities";