@copilotkit/react-core 1.68.3 → 1.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{copilotkit-BUIK5yln.d.mts → copilotkit-DYKpg4pD.d.mts} +34 -25
- package/dist/copilotkit-DYKpg4pD.d.mts.map +1 -0
- package/dist/{copilotkit-Bocmlr37.cjs → copilotkit-Dr0speVK.cjs} +454 -48
- package/dist/copilotkit-Dr0speVK.cjs.map +1 -0
- package/dist/{copilotkit-C4RqjAba.mjs → copilotkit-Dr6g885f.mjs} +456 -50
- package/dist/copilotkit-Dr6g885f.mjs.map +1 -0
- package/dist/{copilotkit-DSvKW3SS.d.cts → copilotkit-Hl1t9Y1v.d.cts} +34 -25
- package/dist/copilotkit-Hl1t9Y1v.d.cts.map +1 -0
- package/dist/index.cjs +119 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +904 -28
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +904 -28
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +119 -75
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +185 -101
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.cjs +3 -2
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts +5 -4
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts +5 -4
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +3 -2
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +2 -2
- package/dist/v2/index.d.mts +2 -2
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +451 -45
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/skills/react-core/SKILL.md +1 -1
- package/skills/react-core/references/provider-setup.md +23 -2
- package/skills/react-core/references/threads.md +3 -4
- package/dist/copilotkit-BUIK5yln.d.mts.map +0 -1
- package/dist/copilotkit-Bocmlr37.cjs.map +0 -1
- package/dist/copilotkit-C4RqjAba.mjs.map +0 -1
- package/dist/copilotkit-DSvKW3SS.d.cts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as LangGraphInterruptActionSetter, Cr as FrontendActionAvailability, Jn as CopilotContext, Kn as CoagentInChatRenderFunction, Qn as LangGraphInterruptAction, Sr as FrontendAction, X as useAgent, Xn as useCopilotContext, Yn as CopilotContextParams, Zn as CoAgentStateRender, _r as ActionRenderPropsNoArgs, ar as CrewsAgentState, br as CatchAllActionRenderProps, cr as CrewsStateItem, dr as CopilotChatSuggestionConfiguration, er as LangGraphInterruptActionSetterArgs, fr as SystemMessageFunction, gr as ActionRenderProps, hr as TreeNode, ir as QueuedInterruptEvent, lr as CrewsTaskStateItem, mr as Tree, n as defaultCopilotContextCategories, nr as LangGraphInterruptRenderHandlerProps, or as CrewsResponse, pr as DocumentPointer, qn as CopilotApiConfig, r as CopilotKitProps, rr as LangGraphInterruptRenderProps, sr as CrewsResponseStatus, t as CopilotKit, tr as LangGraphInterruptRender, ur as CrewsToolStateItem, vr as ActionRenderPropsNoArgsWait, wr as RenderFunctionStatus, xr as CatchAllFrontendAction, yr as ActionRenderPropsWait, yt as useRenderToolCall$1 } from "./copilotkit-DYKpg4pD.mjs";
|
|
2
2
|
import "./v2/index.mjs";
|
|
3
3
|
import React, { ReactNode, RefObject, SetStateAction } from "react";
|
|
4
4
|
import { StaticSuggestionsConfig, Suggestion } from "@copilotkit/core";
|
|
@@ -6,7 +6,7 @@ import { AIMessage, CopilotErrorHandler, Message, Parameter } from "@copilotkit/
|
|
|
6
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { CopilotRuntimeClient, CopilotRuntimeClientOptions, ForwardedParametersInput, Message as Message$1 } from "@copilotkit/runtime-client-gql";
|
|
8
8
|
|
|
9
|
-
//#region src/context/copilot-messages-context.d.ts
|
|
9
|
+
//#region src/v1-deprecated/context/copilot-messages-context.d.ts
|
|
10
10
|
interface CopilotMessagesContextParams {
|
|
11
11
|
messages: Message$1[];
|
|
12
12
|
setMessages: React.Dispatch<React.SetStateAction<Message$1[]>>;
|
|
@@ -16,7 +16,7 @@ interface CopilotMessagesContextParams {
|
|
|
16
16
|
declare const CopilotMessagesContext: React.Context<CopilotMessagesContextParams>;
|
|
17
17
|
declare function useCopilotMessagesContext(): CopilotMessagesContextParams;
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/context/coagent-state-renders-context.d.ts
|
|
19
|
+
//#region src/v1-deprecated/context/coagent-state-renders-context.d.ts
|
|
20
20
|
interface StateRenderClaim {
|
|
21
21
|
stateRenderId: string;
|
|
22
22
|
stateSnapshot?: any;
|
|
@@ -39,7 +39,7 @@ declare function CoAgentStateRendersProvider({
|
|
|
39
39
|
}): react_jsx_runtime0.JSX.Element;
|
|
40
40
|
declare function useCoAgentStateRenders(): CoAgentStateRendersContextValue;
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region src/context/threads-context.d.ts
|
|
42
|
+
//#region src/v1-deprecated/context/threads-context.d.ts
|
|
43
43
|
interface ThreadsContextValue {
|
|
44
44
|
threadId: string;
|
|
45
45
|
setThreadId: (value: SetStateAction<string>) => void;
|
|
@@ -56,7 +56,7 @@ declare function ThreadsProvider({
|
|
|
56
56
|
}: ThreadsProviderProps): react_jsx_runtime0.JSX.Element;
|
|
57
57
|
declare function useThreads(): ThreadsContextValue;
|
|
58
58
|
//#endregion
|
|
59
|
-
//#region src/hooks/use-copilot-chat_internal.d.ts
|
|
59
|
+
//#region src/v1-deprecated/hooks/use-copilot-chat_internal.d.ts
|
|
60
60
|
/**
|
|
61
61
|
* The type of suggestions to use in the chat.
|
|
62
62
|
*
|
|
@@ -299,7 +299,7 @@ declare function useCopilotChatInternal({
|
|
|
299
299
|
onReloadMessages
|
|
300
300
|
}?: UseCopilotChatOptions): UseCopilotChatReturn$1;
|
|
301
301
|
//#endregion
|
|
302
|
-
//#region src/hooks/use-copilot-chat.d.ts
|
|
302
|
+
//#region src/v1-deprecated/hooks/use-copilot-chat.d.ts
|
|
303
303
|
type UseCopilotChatReturn = Omit<UseCopilotChatReturn$1, "messages" | "sendMessage" | "suggestions" | "setSuggestions" | "generateSuggestions" | "isLoadingSuggestions" | "resetSuggestions" | "interrupt" | "setMessages" | "deleteMessage">;
|
|
304
304
|
/**
|
|
305
305
|
* A lightweight React hook for headless chat interactions.
|
|
@@ -309,13 +309,13 @@ type UseCopilotChatReturn = Omit<UseCopilotChatReturn$1, "messages" | "sendMessa
|
|
|
309
309
|
*/
|
|
310
310
|
declare function useCopilotChat(options?: UseCopilotChatOptions): UseCopilotChatReturn;
|
|
311
311
|
//#endregion
|
|
312
|
-
//#region src/hooks/use-copilot-chat-headless_c.d.ts
|
|
312
|
+
//#region src/v1-deprecated/hooks/use-copilot-chat-headless_c.d.ts
|
|
313
313
|
/**
|
|
314
|
-
*
|
|
314
|
+
* CopilotKit Intelligence React hook that provides complete chat functionality for fully custom UI implementations.
|
|
315
315
|
* Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support.
|
|
316
316
|
*
|
|
317
317
|
* @param options - Configuration options for the chat
|
|
318
|
-
* @returns Complete chat interface with all
|
|
318
|
+
* @returns Complete chat interface with all CopilotKit Intelligence features
|
|
319
319
|
*
|
|
320
320
|
* @example
|
|
321
321
|
* ```tsx
|
|
@@ -324,7 +324,7 @@ declare function useCopilotChat(options?: UseCopilotChatOptions): UseCopilotChat
|
|
|
324
324
|
*/
|
|
325
325
|
declare function useCopilotChatHeadless_c(options?: UseCopilotChatOptions): UseCopilotChatReturn$1;
|
|
326
326
|
//#endregion
|
|
327
|
-
//#region src/hooks/use-copilot-action.d.ts
|
|
327
|
+
//#region src/v1-deprecated/hooks/use-copilot-action.d.ts
|
|
328
328
|
/**
|
|
329
329
|
* useCopilotAction is a legacy hook maintained for backwards compatibility.
|
|
330
330
|
*
|
|
@@ -338,7 +338,7 @@ declare function useCopilotChatHeadless_c(options?: UseCopilotChatOptions): UseC
|
|
|
338
338
|
*/
|
|
339
339
|
declare function useCopilotAction<const T extends Parameter[] | [] = []>(action: FrontendAction<T> | CatchAllFrontendAction, dependencies?: any[]): void;
|
|
340
340
|
//#endregion
|
|
341
|
-
//#region src/hooks/use-coagent-state-render.d.ts
|
|
341
|
+
//#region src/v1-deprecated/hooks/use-coagent-state-render.d.ts
|
|
342
342
|
/**
|
|
343
343
|
* This hook is used to render agent state with custom UI components or text. This is particularly
|
|
344
344
|
* useful for showing intermediate state or progress during Agentic Copilot operations.
|
|
@@ -348,7 +348,7 @@ declare function useCopilotAction<const T extends Parameter[] | [] = []>(action:
|
|
|
348
348
|
*/
|
|
349
349
|
declare function useCoAgentStateRender<T = any>(action: CoAgentStateRender<T>, dependencies?: any[]): void;
|
|
350
350
|
//#endregion
|
|
351
|
-
//#region src/hooks/use-make-copilot-document-readable.d.ts
|
|
351
|
+
//#region src/v1-deprecated/hooks/use-make-copilot-document-readable.d.ts
|
|
352
352
|
/**
|
|
353
353
|
* Makes a document readable by Copilot.
|
|
354
354
|
* @param document The document to make readable.
|
|
@@ -358,7 +358,7 @@ declare function useCoAgentStateRender<T = any>(action: CoAgentStateRender<T>, d
|
|
|
358
358
|
*/
|
|
359
359
|
declare function useMakeCopilotDocumentReadable(document: DocumentPointer, categories?: string[], dependencies?: any[]): string | undefined;
|
|
360
360
|
//#endregion
|
|
361
|
-
//#region src/hooks/use-copilot-readable.d.ts
|
|
361
|
+
//#region src/v1-deprecated/hooks/use-copilot-readable.d.ts
|
|
362
362
|
/**
|
|
363
363
|
* Options for the useCopilotReadable hook.
|
|
364
364
|
*/
|
|
@@ -399,6 +399,20 @@ interface UseCopilotReadableOptions {
|
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* Adds the given information to the Copilot context to make it readable by Copilot.
|
|
402
|
+
* @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useAgentContext` from `@copilotkit/react-core/v2` instead.
|
|
403
|
+
*
|
|
404
|
+
* ```tsx
|
|
405
|
+
* import { useAgentContext } from "@copilotkit/react-core/v2";
|
|
406
|
+
*
|
|
407
|
+
* function UserContext() {
|
|
408
|
+
* useAgentContext({
|
|
409
|
+
* description: "The current user",
|
|
410
|
+
* value: { name: "Ada" },
|
|
411
|
+
* });
|
|
412
|
+
* return null;
|
|
413
|
+
* }
|
|
414
|
+
* ```
|
|
415
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useAgentContext
|
|
402
416
|
*/
|
|
403
417
|
declare function useCopilotReadable({
|
|
404
418
|
description,
|
|
@@ -407,7 +421,7 @@ declare function useCopilotReadable({
|
|
|
407
421
|
available
|
|
408
422
|
}: UseCopilotReadableOptions, dependencies?: any[]): string | undefined;
|
|
409
423
|
//#endregion
|
|
410
|
-
//#region src/hooks/use-coagent.d.ts
|
|
424
|
+
//#region src/v1-deprecated/hooks/use-coagent.d.ts
|
|
411
425
|
interface UseCoagentOptionsBase {
|
|
412
426
|
/**
|
|
413
427
|
* The name of the agent being used.
|
|
@@ -507,14 +521,14 @@ type HintFunction = (params: HintFunctionParams) => Message | undefined;
|
|
|
507
521
|
*/
|
|
508
522
|
declare function useCoAgent<T = any>(options: UseCoagentOptions<T>): UseCoagentReturnType<T>;
|
|
509
523
|
//#endregion
|
|
510
|
-
//#region src/hooks/use-copilot-runtime-client.d.ts
|
|
524
|
+
//#region src/v1-deprecated/hooks/use-copilot-runtime-client.d.ts
|
|
511
525
|
interface CopilotRuntimeClientHookOptions extends CopilotRuntimeClientOptions {
|
|
512
526
|
showDevConsole?: boolean;
|
|
513
527
|
onError: CopilotErrorHandler;
|
|
514
528
|
}
|
|
515
529
|
declare const useCopilotRuntimeClient: (options: CopilotRuntimeClientHookOptions) => CopilotRuntimeClient;
|
|
516
530
|
//#endregion
|
|
517
|
-
//#region src/hooks/use-copilot-authenticated-action.d.ts
|
|
531
|
+
//#region src/v1-deprecated/hooks/use-copilot-authenticated-action.d.ts
|
|
518
532
|
/**
|
|
519
533
|
* Hook to create an authenticated action that requires user sign-in before execution.
|
|
520
534
|
*
|
|
@@ -525,10 +539,27 @@ declare const useCopilotRuntimeClient: (options: CopilotRuntimeClientHookOptions
|
|
|
525
539
|
*/
|
|
526
540
|
declare function useCopilotAuthenticatedAction_c<T extends Parameter[]>(action: FrontendAction<T>, dependencies?: any[]): void;
|
|
527
541
|
//#endregion
|
|
528
|
-
//#region src/hooks/use-langgraph-interrupt.d.ts
|
|
542
|
+
//#region src/v1-deprecated/hooks/use-langgraph-interrupt.d.ts
|
|
543
|
+
/**
|
|
544
|
+
* @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useInterrupt` from `@copilotkit/react-core/v2` instead.
|
|
545
|
+
*
|
|
546
|
+
* ```tsx
|
|
547
|
+
* import { useInterrupt } from "@copilotkit/react-core/v2";
|
|
548
|
+
*
|
|
549
|
+
* function ApprovalInterrupt() {
|
|
550
|
+
* useInterrupt({
|
|
551
|
+
* render: ({ resolve }) => (
|
|
552
|
+
* <button onClick={() => resolve({ approved: true })}>Approve</button>
|
|
553
|
+
* ),
|
|
554
|
+
* });
|
|
555
|
+
* return null;
|
|
556
|
+
* }
|
|
557
|
+
* ```
|
|
558
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useInterrupt
|
|
559
|
+
*/
|
|
529
560
|
declare function useLangGraphInterrupt<TEventValue = any>(action: Omit<LangGraphInterruptRender<TEventValue>, "id">, _dependencies?: any[]): void;
|
|
530
561
|
//#endregion
|
|
531
|
-
//#region src/hooks/use-copilot-additional-instructions.d.ts
|
|
562
|
+
//#region src/v1-deprecated/hooks/use-copilot-additional-instructions.d.ts
|
|
532
563
|
/**
|
|
533
564
|
* Options for the useCopilotAdditionalInstructions hook.
|
|
534
565
|
*/
|
|
@@ -557,34 +588,94 @@ declare function useCopilotAdditionalInstructions({
|
|
|
557
588
|
available
|
|
558
589
|
}: UseCopilotAdditionalInstructionsOptions, dependencies?: any[]): void;
|
|
559
590
|
//#endregion
|
|
560
|
-
//#region src/hooks/use-frontend-tool.d.ts
|
|
591
|
+
//#region src/v1-deprecated/hooks/use-frontend-tool.d.ts
|
|
561
592
|
type UseFrontendToolArgs<T extends Parameter[] | [] = []> = {
|
|
562
593
|
available?: "disabled" | "enabled";
|
|
563
594
|
} & Pick<FrontendAction<T>, "name" | "description" | "parameters" | "handler" | "followUp" | "render">;
|
|
595
|
+
/**
|
|
596
|
+
* @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useFrontendTool` from `@copilotkit/react-core/v2` instead.
|
|
597
|
+
*
|
|
598
|
+
* ```tsx
|
|
599
|
+
* import { useFrontendTool } from "@copilotkit/react-core/v2";
|
|
600
|
+
* import { z } from "zod";
|
|
601
|
+
*
|
|
602
|
+
* function MyComponent() {
|
|
603
|
+
* useFrontendTool({
|
|
604
|
+
* name: "myTool",
|
|
605
|
+
* description: "Run my tool",
|
|
606
|
+
* parameters: z.object({}),
|
|
607
|
+
* handler: async () => "done",
|
|
608
|
+
* });
|
|
609
|
+
* return null;
|
|
610
|
+
* }
|
|
611
|
+
* ```
|
|
612
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useFrontendTool
|
|
613
|
+
*/
|
|
564
614
|
declare function useFrontendTool<const T extends Parameter[] = []>(tool: UseFrontendToolArgs<T>, dependencies?: any[]): void;
|
|
565
615
|
//#endregion
|
|
566
|
-
//#region src/hooks/use-human-in-the-loop.d.ts
|
|
616
|
+
//#region src/v1-deprecated/hooks/use-human-in-the-loop.d.ts
|
|
567
617
|
type UseHumanInTheLoopArgs<T extends Parameter[] | [] = []> = {
|
|
568
618
|
available?: "disabled" | "enabled";
|
|
569
619
|
render: FrontendAction<T>["renderAndWaitForResponse"];
|
|
570
620
|
followUp?: FrontendAction<T>["followUp"];
|
|
571
621
|
} & Pick<FrontendAction<T>, "name" | "description" | "parameters">;
|
|
622
|
+
/**
|
|
623
|
+
* @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useHumanInTheLoop` from `@copilotkit/react-core/v2` instead.
|
|
624
|
+
*
|
|
625
|
+
* ```tsx
|
|
626
|
+
* import { useHumanInTheLoop } from "@copilotkit/react-core/v2";
|
|
627
|
+
* import { z } from "zod";
|
|
628
|
+
*
|
|
629
|
+
* function Confirmation() {
|
|
630
|
+
* useHumanInTheLoop({
|
|
631
|
+
* name: "confirmAction",
|
|
632
|
+
* description: "Ask the user to confirm",
|
|
633
|
+
* parameters: z.object({}),
|
|
634
|
+
* render: ({ respond }) => (
|
|
635
|
+
* <button onClick={() => respond?.(true)}>Confirm</button>
|
|
636
|
+
* ),
|
|
637
|
+
* });
|
|
638
|
+
* return null;
|
|
639
|
+
* }
|
|
640
|
+
* ```
|
|
641
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useHumanInTheLoop
|
|
642
|
+
*/
|
|
572
643
|
declare function useHumanInTheLoop<const T extends Parameter[] | [] = []>(tool: UseHumanInTheLoopArgs<T>, dependencies?: any[]): void;
|
|
573
644
|
//#endregion
|
|
574
|
-
//#region src/hooks/use-render-tool-call.d.ts
|
|
645
|
+
//#region src/v1-deprecated/hooks/use-render-tool-call.d.ts
|
|
575
646
|
type UseRenderToolCallArgs<T extends Parameter[] | [] = []> = Pick<FrontendAction<T>, "name" | "description" | "parameters"> & {
|
|
576
647
|
available?: "disabled" | "enabled";
|
|
577
648
|
render: T extends [] ? (props: ActionRenderPropsNoArgs<T>) => React.ReactElement : (props: ActionRenderProps<T>) => React.ReactElement;
|
|
578
649
|
};
|
|
650
|
+
/**
|
|
651
|
+
* @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useRenderTool` from `@copilotkit/react-core/v2` instead.
|
|
652
|
+
*
|
|
653
|
+
* ```tsx
|
|
654
|
+
* import { useRenderTool } from "@copilotkit/react-core/v2";
|
|
655
|
+
* import { z } from "zod";
|
|
656
|
+
*
|
|
657
|
+
* function StatusTool() {
|
|
658
|
+
* useRenderTool({
|
|
659
|
+
* name: "showStatus",
|
|
660
|
+
* parameters: z.object({}),
|
|
661
|
+
* render: ({ status, result }) => (
|
|
662
|
+
* <div>{status === "complete" ? result : "Running..."}</div>
|
|
663
|
+
* ),
|
|
664
|
+
* });
|
|
665
|
+
* return null;
|
|
666
|
+
* }
|
|
667
|
+
* ```
|
|
668
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useRenderTool
|
|
669
|
+
*/
|
|
579
670
|
declare function useRenderToolCall<const T extends Parameter[] | [] = []>(tool: UseRenderToolCallArgs<T>, dependencies?: any[]): void;
|
|
580
671
|
//#endregion
|
|
581
|
-
//#region src/hooks/use-default-tool.d.ts
|
|
672
|
+
//#region src/v1-deprecated/hooks/use-default-tool.d.ts
|
|
582
673
|
declare function useDefaultTool(tool: Omit<CatchAllFrontendAction, "name">, dependencies?: any[]): void;
|
|
583
674
|
//#endregion
|
|
584
|
-
//#region src/hooks/use-lazy-tool-renderer.d.ts
|
|
675
|
+
//#region src/v1-deprecated/hooks/use-lazy-tool-renderer.d.ts
|
|
585
676
|
declare function useLazyToolRenderer(): (message?: AIMessage, messages?: Message[]) => null | (() => ReturnType<ReturnType<typeof useRenderToolCall$1>> | null);
|
|
586
677
|
//#endregion
|
|
587
|
-
//#region src/hooks/use-copilot-chat-suggestions.d.ts
|
|
678
|
+
//#region src/v1-deprecated/hooks/use-copilot-chat-suggestions.d.ts
|
|
588
679
|
type StaticSuggestionInput = Omit<Suggestion, "isLoading"> & Partial<Pick<Suggestion, "isLoading">>;
|
|
589
680
|
type StaticSuggestionsConfigInput = Omit<StaticSuggestionsConfig, "suggestions"> & {
|
|
590
681
|
suggestions: StaticSuggestionInput[];
|
|
@@ -617,7 +708,7 @@ type DynamicSuggestionsConfigInput = {
|
|
|
617
708
|
type UseCopilotChatSuggestionsConfiguration = DynamicSuggestionsConfigInput | StaticSuggestionsConfigInput;
|
|
618
709
|
declare function useCopilotChatSuggestions(config: UseCopilotChatSuggestionsConfiguration, dependencies?: any[]): void;
|
|
619
710
|
//#endregion
|
|
620
|
-
//#region src/lib/copilot-task.d.ts
|
|
711
|
+
//#region src/v1-deprecated/lib/copilot-task.d.ts
|
|
621
712
|
interface CopilotTaskConfig {
|
|
622
713
|
/**
|
|
623
714
|
* The instructions to be given to the assistant.
|
|
@@ -655,7 +746,7 @@ declare class CopilotTask<T = any> {
|
|
|
655
746
|
run(context: CopilotContextParams, data?: T): Promise<void>;
|
|
656
747
|
}
|
|
657
748
|
//#endregion
|
|
658
|
-
//#region src/utils/suggestions-constants.d.ts
|
|
749
|
+
//#region src/v1-deprecated/utils/suggestions-constants.d.ts
|
|
659
750
|
/**
|
|
660
751
|
* Constants for suggestions retry logic
|
|
661
752
|
*/
|
|
@@ -664,8 +755,793 @@ declare const SUGGESTION_RETRY_CONFIG: {
|
|
|
664
755
|
readonly COOLDOWN_MS: 5000;
|
|
665
756
|
};
|
|
666
757
|
//#endregion
|
|
667
|
-
//#region src/utils/dev-console.d.ts
|
|
758
|
+
//#region src/v1-deprecated/utils/dev-console.d.ts
|
|
668
759
|
declare function shouldShowDevConsole(showDevConsole?: boolean): boolean;
|
|
669
760
|
//#endregion
|
|
670
|
-
export {
|
|
761
|
+
export { /**
|
|
762
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
763
|
+
* No 1:1 v2 replacement is available.
|
|
764
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
765
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
766
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
767
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
768
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
769
|
+
*/
|
|
770
|
+
type ActionRenderProps, /**
|
|
771
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
772
|
+
* No 1:1 v2 replacement is available.
|
|
773
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
774
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
775
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
776
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
777
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
778
|
+
*/
|
|
779
|
+
type ActionRenderPropsNoArgs, /**
|
|
780
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
781
|
+
* No 1:1 v2 replacement is available.
|
|
782
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
783
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
784
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
785
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
786
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
787
|
+
*/
|
|
788
|
+
type ActionRenderPropsNoArgsWait, /**
|
|
789
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
790
|
+
* No 1:1 v2 replacement is available.
|
|
791
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
792
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
793
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
794
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
795
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
796
|
+
*/
|
|
797
|
+
type ActionRenderPropsWait, /**
|
|
798
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
799
|
+
* No 1:1 v2 replacement is available.
|
|
800
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
801
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
802
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
803
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
804
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
805
|
+
*/
|
|
806
|
+
type CatchAllActionRenderProps, /**
|
|
807
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
808
|
+
* No 1:1 v2 replacement is available.
|
|
809
|
+
* Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
|
|
810
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
811
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
812
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
813
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
814
|
+
*/
|
|
815
|
+
type CatchAllFrontendAction, /**
|
|
816
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
817
|
+
* No 1:1 v2 replacement is available.
|
|
818
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
819
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
820
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
821
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
822
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
823
|
+
*/
|
|
824
|
+
type ChatSuggestions, /**
|
|
825
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
826
|
+
* No 1:1 v2 replacement is available.
|
|
827
|
+
* Related v2 docs (State rendering): https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
828
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
829
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
830
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
831
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
832
|
+
*/
|
|
833
|
+
CoAgentStateRendersContext, /**
|
|
834
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
835
|
+
* No 1:1 v2 replacement is available.
|
|
836
|
+
* Related v2 docs (State rendering): https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
837
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
838
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
839
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
840
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
841
|
+
*/
|
|
842
|
+
type CoAgentStateRendersContextValue, /**
|
|
843
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
844
|
+
* No 1:1 v2 replacement is available.
|
|
845
|
+
* Related v2 docs (State rendering): https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
846
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
847
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
848
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
849
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
850
|
+
*/
|
|
851
|
+
CoAgentStateRendersProvider, /**
|
|
852
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
853
|
+
* No 1:1 v2 replacement is available.
|
|
854
|
+
* Related v2 docs (State rendering): https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
855
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
856
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
857
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
858
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
859
|
+
*/
|
|
860
|
+
type CoagentInChatRenderFunction, /**
|
|
861
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
862
|
+
* No 1:1 v2 replacement is available.
|
|
863
|
+
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
|
|
864
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
865
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
866
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
867
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
868
|
+
*/
|
|
869
|
+
type CopilotApiConfig, /**
|
|
870
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
871
|
+
* No 1:1 v2 replacement is available.
|
|
872
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
873
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
874
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
875
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
876
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
877
|
+
*/
|
|
878
|
+
type CopilotChatSuggestionConfiguration, /**
|
|
879
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
880
|
+
* No 1:1 v2 replacement is available.
|
|
881
|
+
* Related v2 docs (CopilotKit provider): https://docs.copilotkit.ai/reference/v2/components/CopilotKit
|
|
882
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
883
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
884
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
885
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
886
|
+
*/
|
|
887
|
+
CopilotContext, /**
|
|
888
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
889
|
+
* No 1:1 v2 replacement is available.
|
|
890
|
+
* Related v2 docs (CopilotKit provider): https://docs.copilotkit.ai/reference/v2/components/CopilotKit
|
|
891
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
892
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
893
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
894
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
895
|
+
*/
|
|
896
|
+
type CopilotContextParams, /**
|
|
897
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
898
|
+
* Use `CopilotKit` from `@copilotkit/react-core/v2` instead.
|
|
899
|
+
* Import and usage example:
|
|
900
|
+
* ```ts
|
|
901
|
+
* import { CopilotKit } from "@copilotkit/react-core/v2";
|
|
902
|
+
* <CopilotKit />;
|
|
903
|
+
* ```
|
|
904
|
+
* See https://docs.copilotkit.ai/reference/v2/components/CopilotKit
|
|
905
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
906
|
+
*/
|
|
907
|
+
CopilotKit, /**
|
|
908
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
909
|
+
* Use `CopilotKitProps` from `@copilotkit/react-core/v2` instead.
|
|
910
|
+
* Import and usage example:
|
|
911
|
+
* ```ts
|
|
912
|
+
* import type { CopilotKitProps } from "@copilotkit/react-core/v2";
|
|
913
|
+
* type V2CopilotKitProps = CopilotKitProps;
|
|
914
|
+
* ```
|
|
915
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
916
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
917
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
918
|
+
*/
|
|
919
|
+
type CopilotKitProps, /**
|
|
920
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
921
|
+
* No 1:1 v2 replacement is available.
|
|
922
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
923
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
924
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
925
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
926
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
927
|
+
*/
|
|
928
|
+
CopilotMessagesContext, /**
|
|
929
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
930
|
+
* No 1:1 v2 replacement is available.
|
|
931
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
932
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
933
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
934
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
935
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
936
|
+
*/
|
|
937
|
+
type CopilotMessagesContextParams, /**
|
|
938
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
939
|
+
* No 1:1 v2 replacement is available.
|
|
940
|
+
* Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
|
|
941
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
942
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
943
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
944
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
945
|
+
*/
|
|
946
|
+
CopilotTask, /**
|
|
947
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
948
|
+
* No 1:1 v2 replacement is available.
|
|
949
|
+
* Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
|
|
950
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
951
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
952
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
953
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
954
|
+
*/
|
|
955
|
+
type CopilotTaskConfig, /**
|
|
956
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
957
|
+
* No 1:1 v2 replacement is available.
|
|
958
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
959
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
960
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
961
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
962
|
+
*/
|
|
963
|
+
type CrewsAgentState, /**
|
|
964
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
965
|
+
* No 1:1 v2 replacement is available.
|
|
966
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
967
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
968
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
969
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
970
|
+
*/
|
|
971
|
+
type CrewsResponse, /**
|
|
972
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
973
|
+
* No 1:1 v2 replacement is available.
|
|
974
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
975
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
976
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
977
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
978
|
+
*/
|
|
979
|
+
type CrewsResponseStatus, /**
|
|
980
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
981
|
+
* No 1:1 v2 replacement is available.
|
|
982
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
983
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
984
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
985
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
986
|
+
*/
|
|
987
|
+
type CrewsStateItem, /**
|
|
988
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
989
|
+
* No 1:1 v2 replacement is available.
|
|
990
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
991
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
992
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
993
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
994
|
+
*/
|
|
995
|
+
type CrewsTaskStateItem, /**
|
|
996
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
997
|
+
* No 1:1 v2 replacement is available.
|
|
998
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
999
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1000
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1001
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1002
|
+
*/
|
|
1003
|
+
type CrewsToolStateItem, /**
|
|
1004
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1005
|
+
* No 1:1 v2 replacement is available.
|
|
1006
|
+
* Related v2 docs (Agent context): https://docs.copilotkit.ai/agent-app-context
|
|
1007
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1008
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1009
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1010
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1011
|
+
*/
|
|
1012
|
+
type DocumentPointer, /**
|
|
1013
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1014
|
+
* No 1:1 v2 replacement is available.
|
|
1015
|
+
* Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
|
|
1016
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1017
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1018
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1019
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1020
|
+
*/
|
|
1021
|
+
type FrontendAction, /**
|
|
1022
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1023
|
+
* No 1:1 v2 replacement is available.
|
|
1024
|
+
* Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
|
|
1025
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1026
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1027
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1028
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1029
|
+
*/
|
|
1030
|
+
type FrontendActionAvailability, /**
|
|
1031
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1032
|
+
* No 1:1 v2 replacement is available.
|
|
1033
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1034
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1035
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1036
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1037
|
+
*/
|
|
1038
|
+
type HintFunction, /**
|
|
1039
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1040
|
+
* No 1:1 v2 replacement is available.
|
|
1041
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1042
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1043
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1044
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1045
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1046
|
+
*/
|
|
1047
|
+
type LangGraphInterruptAction, /**
|
|
1048
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1049
|
+
* No 1:1 v2 replacement is available.
|
|
1050
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1051
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1052
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1053
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1054
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1055
|
+
*/
|
|
1056
|
+
type LangGraphInterruptActionSetter, /**
|
|
1057
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1058
|
+
* No 1:1 v2 replacement is available.
|
|
1059
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1060
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1061
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1062
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1063
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1064
|
+
*/
|
|
1065
|
+
type LangGraphInterruptActionSetterArgs, /**
|
|
1066
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1067
|
+
* No 1:1 v2 replacement is available.
|
|
1068
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1069
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1070
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1071
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1072
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1073
|
+
*/
|
|
1074
|
+
type LangGraphInterruptRender, /**
|
|
1075
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1076
|
+
* No 1:1 v2 replacement is available.
|
|
1077
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1078
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1079
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1080
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1081
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1082
|
+
*/
|
|
1083
|
+
type LangGraphInterruptRenderHandlerProps, /**
|
|
1084
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1085
|
+
* No 1:1 v2 replacement is available.
|
|
1086
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1087
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1088
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1089
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1090
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1091
|
+
*/
|
|
1092
|
+
type LangGraphInterruptRenderProps, /**
|
|
1093
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1094
|
+
* No 1:1 v2 replacement is available.
|
|
1095
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1096
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1097
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1098
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1099
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1100
|
+
*/
|
|
1101
|
+
type OnReloadMessages, /**
|
|
1102
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1103
|
+
* No 1:1 v2 replacement is available.
|
|
1104
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1105
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1106
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1107
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1108
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1109
|
+
*/
|
|
1110
|
+
type OnStopGeneration, /**
|
|
1111
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1112
|
+
* No 1:1 v2 replacement is available.
|
|
1113
|
+
* Related v2 docs (Human-in-the-loop): https://docs.copilotkit.ai/human-in-the-loop
|
|
1114
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1115
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1116
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1117
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1118
|
+
*/
|
|
1119
|
+
type QueuedInterruptEvent, /**
|
|
1120
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1121
|
+
* No 1:1 v2 replacement is available.
|
|
1122
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
1123
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1124
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1125
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1126
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1127
|
+
*/
|
|
1128
|
+
type RenderFunctionStatus, /**
|
|
1129
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1130
|
+
* No 1:1 v2 replacement is available.
|
|
1131
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
1132
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1133
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1134
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1135
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1136
|
+
*/
|
|
1137
|
+
SUGGESTION_RETRY_CONFIG, /**
|
|
1138
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1139
|
+
* No 1:1 v2 replacement is available.
|
|
1140
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1141
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1142
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1143
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1144
|
+
*/
|
|
1145
|
+
type SystemMessageFunction, /**
|
|
1146
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1147
|
+
* No 1:1 v2 replacement is available.
|
|
1148
|
+
* Related v2 docs (Conversation threads): https://docs.copilotkit.ai/prebuilt-components/copilot-threads-drawer
|
|
1149
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1150
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1151
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1152
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1153
|
+
*/
|
|
1154
|
+
ThreadsContext, /**
|
|
1155
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1156
|
+
* No 1:1 v2 replacement is available.
|
|
1157
|
+
* Related v2 docs (Conversation threads): https://docs.copilotkit.ai/prebuilt-components/copilot-threads-drawer
|
|
1158
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1159
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1160
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1161
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1162
|
+
*/
|
|
1163
|
+
type ThreadsContextValue, /**
|
|
1164
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1165
|
+
* No 1:1 v2 replacement is available.
|
|
1166
|
+
* Related v2 docs (Conversation threads): https://docs.copilotkit.ai/prebuilt-components/copilot-threads-drawer
|
|
1167
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1168
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1169
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1170
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1171
|
+
*/
|
|
1172
|
+
ThreadsProvider, /**
|
|
1173
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1174
|
+
* No 1:1 v2 replacement is available.
|
|
1175
|
+
* Related v2 docs (Conversation threads): https://docs.copilotkit.ai/prebuilt-components/copilot-threads-drawer
|
|
1176
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1177
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1178
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1179
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1180
|
+
*/
|
|
1181
|
+
type ThreadsProviderProps, /**
|
|
1182
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1183
|
+
* No 1:1 v2 replacement is available.
|
|
1184
|
+
* Related v2 docs (Agent context): https://docs.copilotkit.ai/agent-app-context
|
|
1185
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1186
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1187
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1188
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1189
|
+
*/
|
|
1190
|
+
type Tree, /**
|
|
1191
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1192
|
+
* No 1:1 v2 replacement is available.
|
|
1193
|
+
* Related v2 docs (Agent context): https://docs.copilotkit.ai/agent-app-context
|
|
1194
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1195
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1196
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1197
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1198
|
+
*/
|
|
1199
|
+
type TreeNode, /**
|
|
1200
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1201
|
+
* No 1:1 v2 replacement is available.
|
|
1202
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1203
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1204
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1205
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1206
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1207
|
+
*/
|
|
1208
|
+
type UseCopilotChatOptions, /**
|
|
1209
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1210
|
+
* No 1:1 v2 replacement is available.
|
|
1211
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1212
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1213
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1214
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1215
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1216
|
+
*/
|
|
1217
|
+
type UseCopilotChatOptions as UseCopilotChatOptions_c, /**
|
|
1218
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1219
|
+
* No 1:1 v2 replacement is available.
|
|
1220
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1221
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1222
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1223
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1224
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1225
|
+
*/
|
|
1226
|
+
type UseCopilotChatReturn, /**
|
|
1227
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1228
|
+
* No 1:1 v2 replacement is available.
|
|
1229
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1230
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1231
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1232
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1233
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1234
|
+
*/
|
|
1235
|
+
type UseCopilotChatReturn$1 as UseCopilotChatReturn_c, /**
|
|
1236
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1237
|
+
* No 1:1 v2 replacement is available.
|
|
1238
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
1239
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1240
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1241
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1242
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1243
|
+
*/
|
|
1244
|
+
type UseCopilotChatSuggestionsConfiguration, /**
|
|
1245
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1246
|
+
* No 1:1 v2 replacement is available.
|
|
1247
|
+
* Related v2 docs (Agent context): https://docs.copilotkit.ai/agent-app-context
|
|
1248
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1249
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1250
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1251
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1252
|
+
*/
|
|
1253
|
+
defaultCopilotContextCategories, /**
|
|
1254
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1255
|
+
* No 1:1 v2 replacement is available.
|
|
1256
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1257
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1258
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1259
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1260
|
+
*/
|
|
1261
|
+
shouldShowDevConsole, /**
|
|
1262
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1263
|
+
* Use `useAgent` from `@copilotkit/react-core/v2` instead.
|
|
1264
|
+
* Import and usage example:
|
|
1265
|
+
* ```ts
|
|
1266
|
+
* import { useAgent } from "@copilotkit/react-core/v2";
|
|
1267
|
+
* useAgent({});
|
|
1268
|
+
* ```
|
|
1269
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useAgent
|
|
1270
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1271
|
+
*/
|
|
1272
|
+
useCoAgent, /**
|
|
1273
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1274
|
+
* Use `useAgent` from `@copilotkit/react-core/v2` instead.
|
|
1275
|
+
* Import and usage example:
|
|
1276
|
+
* ```ts
|
|
1277
|
+
* import { useAgent, UseAgentUpdate } from "@copilotkit/react-core/v2";
|
|
1278
|
+
* function AgentStateView() {
|
|
1279
|
+
* const { agent } = useAgent({
|
|
1280
|
+
* agentId: "basic_agent",
|
|
1281
|
+
* updates: [UseAgentUpdate.OnStateChanged, UseAgentUpdate.OnRunStatusChanged],
|
|
1282
|
+
* });
|
|
1283
|
+
* const state = agent.state;
|
|
1284
|
+
* return (
|
|
1285
|
+
* <YourComponent
|
|
1286
|
+
* agentStateProperty={state.agent_state_property}
|
|
1287
|
+
* isRunning={agent.isRunning}
|
|
1288
|
+
* />
|
|
1289
|
+
* );
|
|
1290
|
+
* }
|
|
1291
|
+
* ```
|
|
1292
|
+
* See https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
1293
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1294
|
+
*/
|
|
1295
|
+
useCoAgentStateRender, /**
|
|
1296
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1297
|
+
* No 1:1 v2 replacement is available.
|
|
1298
|
+
* Related v2 docs (State rendering): https://docs.copilotkit.ai/generative-ui/state-rendering
|
|
1299
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1300
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1301
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1302
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1303
|
+
*/
|
|
1304
|
+
useCoAgentStateRenders, /**
|
|
1305
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1306
|
+
* Use `useFrontendTool` from `@copilotkit/react-core/v2` instead.
|
|
1307
|
+
* Import and usage example:
|
|
1308
|
+
* ```ts
|
|
1309
|
+
* import { useFrontendTool } from "@copilotkit/react-core/v2";
|
|
1310
|
+
* useFrontendTool({});
|
|
1311
|
+
* ```
|
|
1312
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useFrontendTool
|
|
1313
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1314
|
+
*/
|
|
1315
|
+
useCopilotAction, /**
|
|
1316
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1317
|
+
* Use `useAgentContext` from `@copilotkit/react-core/v2` instead.
|
|
1318
|
+
* Import and usage example:
|
|
1319
|
+
* ```ts
|
|
1320
|
+
* import { useAgentContext } from "@copilotkit/react-core/v2";
|
|
1321
|
+
* useAgentContext({});
|
|
1322
|
+
* ```
|
|
1323
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useAgentContext
|
|
1324
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1325
|
+
*/
|
|
1326
|
+
useCopilotAdditionalInstructions, /**
|
|
1327
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1328
|
+
* No 1:1 v2 replacement is available.
|
|
1329
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1330
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1331
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1332
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1333
|
+
*/
|
|
1334
|
+
useCopilotAuthenticatedAction_c, /**
|
|
1335
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1336
|
+
* Use `useAgent` from `@copilotkit/react-core/v2` instead.
|
|
1337
|
+
* Import and usage example:
|
|
1338
|
+
* ```ts
|
|
1339
|
+
* import { useAgent } from "@copilotkit/react-core/v2";
|
|
1340
|
+
* useAgent({});
|
|
1341
|
+
* ```
|
|
1342
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useAgent
|
|
1343
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1344
|
+
*/
|
|
1345
|
+
useCopilotChat, /**
|
|
1346
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1347
|
+
* No 1:1 v2 replacement is available.
|
|
1348
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1349
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1350
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1351
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1352
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1353
|
+
*/
|
|
1354
|
+
useCopilotChatHeadless_c, /**
|
|
1355
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1356
|
+
* No 1:1 v2 replacement is available.
|
|
1357
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1358
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1359
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1360
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1361
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1362
|
+
*/
|
|
1363
|
+
useCopilotChatInternal, /**
|
|
1364
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1365
|
+
* Use `useConfigureSuggestions` from `@copilotkit/react-core/v2` instead.
|
|
1366
|
+
* Import and usage example:
|
|
1367
|
+
* ```ts
|
|
1368
|
+
* import { useConfigureSuggestions } from "@copilotkit/react-core/v2";
|
|
1369
|
+
* function Suggestions() {
|
|
1370
|
+
* useConfigureSuggestions({
|
|
1371
|
+
* suggestions: [
|
|
1372
|
+
* { title: "Help", message: "Help me get started" },
|
|
1373
|
+
* ],
|
|
1374
|
+
* });
|
|
1375
|
+
* return null;
|
|
1376
|
+
* }
|
|
1377
|
+
* ```
|
|
1378
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
1379
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1380
|
+
*/
|
|
1381
|
+
useCopilotChatSuggestions, /**
|
|
1382
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1383
|
+
* No 1:1 v2 replacement is available.
|
|
1384
|
+
* Related v2 docs (CopilotKit provider): https://docs.copilotkit.ai/reference/v2/components/CopilotKit
|
|
1385
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1386
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1387
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1388
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1389
|
+
*/
|
|
1390
|
+
useCopilotContext, /**
|
|
1391
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1392
|
+
* No 1:1 v2 replacement is available.
|
|
1393
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
1394
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1395
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1396
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1397
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1398
|
+
*/
|
|
1399
|
+
useCopilotMessagesContext, /**
|
|
1400
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1401
|
+
* Use `useAgentContext` from `@copilotkit/react-core/v2` instead.
|
|
1402
|
+
* Import and usage example:
|
|
1403
|
+
* ```ts
|
|
1404
|
+
* import { useAgentContext } from "@copilotkit/react-core/v2";
|
|
1405
|
+
* function UserContext() {
|
|
1406
|
+
* useAgentContext({
|
|
1407
|
+
* description: "The current user",
|
|
1408
|
+
* value: { name: "Ada" },
|
|
1409
|
+
* });
|
|
1410
|
+
* return null;
|
|
1411
|
+
* }
|
|
1412
|
+
* ```
|
|
1413
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useAgentContext
|
|
1414
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1415
|
+
*/
|
|
1416
|
+
useCopilotReadable, /**
|
|
1417
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1418
|
+
* No 1:1 v2 replacement is available.
|
|
1419
|
+
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
|
|
1420
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1421
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1422
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1423
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1424
|
+
*/
|
|
1425
|
+
useCopilotRuntimeClient, /**
|
|
1426
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1427
|
+
* Use `useDefaultRenderTool` from `@copilotkit/react-core/v2` instead.
|
|
1428
|
+
* Import and usage example:
|
|
1429
|
+
* ```ts
|
|
1430
|
+
* import { useDefaultRenderTool } from "@copilotkit/react-core/v2";
|
|
1431
|
+
* useDefaultRenderTool({});
|
|
1432
|
+
* ```
|
|
1433
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useDefaultRenderTool
|
|
1434
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1435
|
+
*/
|
|
1436
|
+
useDefaultTool, /**
|
|
1437
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1438
|
+
* Use `useFrontendTool` from `@copilotkit/react-core/v2` instead.
|
|
1439
|
+
* Import and usage example:
|
|
1440
|
+
* ```ts
|
|
1441
|
+
* import { useFrontendTool } from "@copilotkit/react-core/v2";
|
|
1442
|
+
* import { z } from "zod";
|
|
1443
|
+
* function MyComponent() {
|
|
1444
|
+
* useFrontendTool({
|
|
1445
|
+
* name: "myTool",
|
|
1446
|
+
* description: "Run my tool",
|
|
1447
|
+
* parameters: z.object({}),
|
|
1448
|
+
* handler: async () => "done",
|
|
1449
|
+
* });
|
|
1450
|
+
* return null;
|
|
1451
|
+
* }
|
|
1452
|
+
* ```
|
|
1453
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useFrontendTool
|
|
1454
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1455
|
+
*/
|
|
1456
|
+
useFrontendTool, /**
|
|
1457
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1458
|
+
* Use `useHumanInTheLoop` from `@copilotkit/react-core/v2` instead.
|
|
1459
|
+
* Import and usage example:
|
|
1460
|
+
* ```ts
|
|
1461
|
+
* import { useHumanInTheLoop } from "@copilotkit/react-core/v2";
|
|
1462
|
+
* import { z } from "zod";
|
|
1463
|
+
* function Confirmation() {
|
|
1464
|
+
* useHumanInTheLoop({
|
|
1465
|
+
* name: "confirmAction",
|
|
1466
|
+
* description: "Ask the user to confirm",
|
|
1467
|
+
* parameters: z.object({}),
|
|
1468
|
+
* render: ({ respond }) => (
|
|
1469
|
+
* <button onClick={() => respond?.(true)}>Confirm</button>
|
|
1470
|
+
* ),
|
|
1471
|
+
* });
|
|
1472
|
+
* return null;
|
|
1473
|
+
* }
|
|
1474
|
+
* ```
|
|
1475
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useHumanInTheLoop
|
|
1476
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1477
|
+
*/
|
|
1478
|
+
useHumanInTheLoop, /**
|
|
1479
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1480
|
+
* Use `useInterrupt` from `@copilotkit/react-core/v2` instead.
|
|
1481
|
+
* Import and usage example:
|
|
1482
|
+
* ```ts
|
|
1483
|
+
* import { useInterrupt } from "@copilotkit/react-core/v2";
|
|
1484
|
+
* function ApprovalInterrupt() {
|
|
1485
|
+
* useInterrupt({
|
|
1486
|
+
* render: ({ resolve }) => (
|
|
1487
|
+
* <button onClick={() => resolve({ approved: true })}>Approve</button>
|
|
1488
|
+
* ),
|
|
1489
|
+
* });
|
|
1490
|
+
* return null;
|
|
1491
|
+
* }
|
|
1492
|
+
* ```
|
|
1493
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useInterrupt
|
|
1494
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1495
|
+
*/
|
|
1496
|
+
useLangGraphInterrupt, /**
|
|
1497
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1498
|
+
* No 1:1 v2 replacement is available.
|
|
1499
|
+
* Related v2 docs (Tool rendering): https://docs.copilotkit.ai/generative-ui/tool-rendering
|
|
1500
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1501
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1502
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1503
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1504
|
+
*/
|
|
1505
|
+
useLazyToolRenderer, /**
|
|
1506
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1507
|
+
* No 1:1 v2 replacement is available.
|
|
1508
|
+
* Related v2 docs (Agent context): https://docs.copilotkit.ai/agent-app-context
|
|
1509
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
1510
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
1511
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
1512
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1513
|
+
*/
|
|
1514
|
+
useMakeCopilotDocumentReadable, /**
|
|
1515
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1516
|
+
* Use `useRenderTool` from `@copilotkit/react-core/v2` instead.
|
|
1517
|
+
* Import and usage example:
|
|
1518
|
+
* ```ts
|
|
1519
|
+
* import { useRenderTool } from "@copilotkit/react-core/v2";
|
|
1520
|
+
* import { z } from "zod";
|
|
1521
|
+
* function StatusTool() {
|
|
1522
|
+
* useRenderTool({
|
|
1523
|
+
* name: "showStatus",
|
|
1524
|
+
* parameters: z.object({}),
|
|
1525
|
+
* render: ({ status, result }) => (
|
|
1526
|
+
* <div>{status === "complete" ? result : "Running..."}</div>
|
|
1527
|
+
* ),
|
|
1528
|
+
* });
|
|
1529
|
+
* return null;
|
|
1530
|
+
* }
|
|
1531
|
+
* ```
|
|
1532
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useRenderTool
|
|
1533
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1534
|
+
*/
|
|
1535
|
+
useRenderToolCall, /**
|
|
1536
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
1537
|
+
* Use `useThreads` from `@copilotkit/react-core/v2` instead.
|
|
1538
|
+
* Import and usage example:
|
|
1539
|
+
* ```ts
|
|
1540
|
+
* import { useThreads } from "@copilotkit/react-core/v2";
|
|
1541
|
+
* useThreads({});
|
|
1542
|
+
* ```
|
|
1543
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useThreads
|
|
1544
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
1545
|
+
*/
|
|
1546
|
+
useThreads };
|
|
671
1547
|
//# sourceMappingURL=index.d.mts.map
|