@axiom-lattice/react-sdk 2.1.30 → 2.1.31
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/index.d.mts +86 -7
- package/dist/index.d.ts +86 -7
- package/dist/index.js +4301 -2375
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4426 -2457
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -713,6 +713,68 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
713
713
|
*/
|
|
714
714
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Middleware tool definition
|
|
718
|
+
*/
|
|
719
|
+
interface MiddlewareToolDefinition {
|
|
720
|
+
id: string;
|
|
721
|
+
name: string;
|
|
722
|
+
description: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* JSON Schema property definition for middleware config
|
|
726
|
+
*/
|
|
727
|
+
interface MiddlewareConfigSchemaProperty {
|
|
728
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | "array";
|
|
729
|
+
title?: string;
|
|
730
|
+
description?: string;
|
|
731
|
+
default?: any;
|
|
732
|
+
enum?: string[];
|
|
733
|
+
minimum?: number;
|
|
734
|
+
maximum?: number;
|
|
735
|
+
minLength?: number;
|
|
736
|
+
maxLength?: number;
|
|
737
|
+
pattern?: string;
|
|
738
|
+
format?: string;
|
|
739
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
740
|
+
items?: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* JSON Schema for middleware configuration
|
|
746
|
+
*/
|
|
747
|
+
interface MiddlewareConfigSchema {
|
|
748
|
+
type: "object";
|
|
749
|
+
title?: string;
|
|
750
|
+
description?: string;
|
|
751
|
+
required?: string[];
|
|
752
|
+
properties: Record<string, MiddlewareConfigSchemaProperty>;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Middleware type definition
|
|
756
|
+
*/
|
|
757
|
+
interface MiddlewareTypeDefinition {
|
|
758
|
+
type: string;
|
|
759
|
+
name: string;
|
|
760
|
+
description: string;
|
|
761
|
+
icon?: ReactNode;
|
|
762
|
+
schema?: MiddlewareConfigSchema;
|
|
763
|
+
defaultConfig?: Record<string, any>;
|
|
764
|
+
tools?: MiddlewareToolDefinition[];
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Middleware type for configuration
|
|
768
|
+
*/
|
|
769
|
+
interface MiddlewareConfigDefinition {
|
|
770
|
+
id: string;
|
|
771
|
+
type: string;
|
|
772
|
+
name: string;
|
|
773
|
+
description: string;
|
|
774
|
+
enabled: boolean;
|
|
775
|
+
config: Record<string, any>;
|
|
776
|
+
tools?: MiddlewareToolDefinition[];
|
|
777
|
+
}
|
|
716
778
|
/**
|
|
717
779
|
* Lattice Chat Shell configuration interface
|
|
718
780
|
*/
|
|
@@ -752,8 +814,14 @@ interface LatticeChatShellConfig {
|
|
|
752
814
|
/**
|
|
753
815
|
* URL of the global shared sandbox, this is used to access the global shared sandbox
|
|
754
816
|
* if not provided, sandbox will be created in the agent's sandbox
|
|
755
|
-
|
|
817
|
+
*/
|
|
756
818
|
globalSharedSandboxURL?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Available middleware types that can be configured for agents
|
|
821
|
+
* Each middleware type defines its name, description, and default configuration
|
|
822
|
+
* If not provided, default middleware types will be used
|
|
823
|
+
*/
|
|
824
|
+
availableMiddlewareTypes?: MiddlewareTypeDefinition[];
|
|
757
825
|
}
|
|
758
826
|
/**
|
|
759
827
|
* Lattice Chat Shell context value interface
|
|
@@ -903,12 +971,12 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
903
971
|
*/
|
|
904
972
|
interface AssistantFlowProps {
|
|
905
973
|
/**
|
|
906
|
-
* Callback when
|
|
974
|
+
* Callback when chat button is clicked
|
|
907
975
|
*/
|
|
908
|
-
|
|
976
|
+
onChat?: (assistant: Assistant) => void;
|
|
909
977
|
}
|
|
910
978
|
/**
|
|
911
|
-
* AssistantFlow component - Canvas for visualizing assistants
|
|
979
|
+
* AssistantFlow component - Canvas for visualizing assistants with side panel
|
|
912
980
|
* Wraps the inner component with ReactFlowProvider
|
|
913
981
|
*/
|
|
914
982
|
declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
|
|
@@ -922,9 +990,13 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
922
990
|
*/
|
|
923
991
|
assistant: Assistant;
|
|
924
992
|
/**
|
|
925
|
-
* Click handler for
|
|
993
|
+
* Click handler for configure button
|
|
926
994
|
*/
|
|
927
|
-
|
|
995
|
+
onConfigure?: (assistant: Assistant) => void;
|
|
996
|
+
/**
|
|
997
|
+
* Click handler for chat button
|
|
998
|
+
*/
|
|
999
|
+
onChat?: (assistant: Assistant) => void;
|
|
928
1000
|
}
|
|
929
1001
|
/**
|
|
930
1002
|
* Custom node component for displaying assistants in the flow
|
|
@@ -970,4 +1042,11 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
970
1042
|
*/
|
|
971
1043
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
972
1044
|
|
|
973
|
-
|
|
1045
|
+
interface CreateAssistantModalProps {
|
|
1046
|
+
open: boolean;
|
|
1047
|
+
onCancel: () => void;
|
|
1048
|
+
onSuccess?: () => void;
|
|
1049
|
+
}
|
|
1050
|
+
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1051
|
+
|
|
1052
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -713,6 +713,68 @@ declare const AssistantContextProvider: ({ children, autoLoad, initialAssistantI
|
|
|
713
713
|
*/
|
|
714
714
|
declare const useAssistantContext: () => AssistantContextValue;
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Middleware tool definition
|
|
718
|
+
*/
|
|
719
|
+
interface MiddlewareToolDefinition {
|
|
720
|
+
id: string;
|
|
721
|
+
name: string;
|
|
722
|
+
description: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* JSON Schema property definition for middleware config
|
|
726
|
+
*/
|
|
727
|
+
interface MiddlewareConfigSchemaProperty {
|
|
728
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | "array";
|
|
729
|
+
title?: string;
|
|
730
|
+
description?: string;
|
|
731
|
+
default?: any;
|
|
732
|
+
enum?: string[];
|
|
733
|
+
minimum?: number;
|
|
734
|
+
maximum?: number;
|
|
735
|
+
minLength?: number;
|
|
736
|
+
maxLength?: number;
|
|
737
|
+
pattern?: string;
|
|
738
|
+
format?: string;
|
|
739
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect";
|
|
740
|
+
items?: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* JSON Schema for middleware configuration
|
|
746
|
+
*/
|
|
747
|
+
interface MiddlewareConfigSchema {
|
|
748
|
+
type: "object";
|
|
749
|
+
title?: string;
|
|
750
|
+
description?: string;
|
|
751
|
+
required?: string[];
|
|
752
|
+
properties: Record<string, MiddlewareConfigSchemaProperty>;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Middleware type definition
|
|
756
|
+
*/
|
|
757
|
+
interface MiddlewareTypeDefinition {
|
|
758
|
+
type: string;
|
|
759
|
+
name: string;
|
|
760
|
+
description: string;
|
|
761
|
+
icon?: ReactNode;
|
|
762
|
+
schema?: MiddlewareConfigSchema;
|
|
763
|
+
defaultConfig?: Record<string, any>;
|
|
764
|
+
tools?: MiddlewareToolDefinition[];
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Middleware type for configuration
|
|
768
|
+
*/
|
|
769
|
+
interface MiddlewareConfigDefinition {
|
|
770
|
+
id: string;
|
|
771
|
+
type: string;
|
|
772
|
+
name: string;
|
|
773
|
+
description: string;
|
|
774
|
+
enabled: boolean;
|
|
775
|
+
config: Record<string, any>;
|
|
776
|
+
tools?: MiddlewareToolDefinition[];
|
|
777
|
+
}
|
|
716
778
|
/**
|
|
717
779
|
* Lattice Chat Shell configuration interface
|
|
718
780
|
*/
|
|
@@ -752,8 +814,14 @@ interface LatticeChatShellConfig {
|
|
|
752
814
|
/**
|
|
753
815
|
* URL of the global shared sandbox, this is used to access the global shared sandbox
|
|
754
816
|
* if not provided, sandbox will be created in the agent's sandbox
|
|
755
|
-
|
|
817
|
+
*/
|
|
756
818
|
globalSharedSandboxURL?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Available middleware types that can be configured for agents
|
|
821
|
+
* Each middleware type defines its name, description, and default configuration
|
|
822
|
+
* If not provided, default middleware types will be used
|
|
823
|
+
*/
|
|
824
|
+
availableMiddlewareTypes?: MiddlewareTypeDefinition[];
|
|
757
825
|
}
|
|
758
826
|
/**
|
|
759
827
|
* Lattice Chat Shell context value interface
|
|
@@ -903,12 +971,12 @@ declare const ScheduleButton: React__default.FC<ScheduleButtonProps>;
|
|
|
903
971
|
*/
|
|
904
972
|
interface AssistantFlowProps {
|
|
905
973
|
/**
|
|
906
|
-
* Callback when
|
|
974
|
+
* Callback when chat button is clicked
|
|
907
975
|
*/
|
|
908
|
-
|
|
976
|
+
onChat?: (assistant: Assistant) => void;
|
|
909
977
|
}
|
|
910
978
|
/**
|
|
911
|
-
* AssistantFlow component - Canvas for visualizing assistants
|
|
979
|
+
* AssistantFlow component - Canvas for visualizing assistants with side panel
|
|
912
980
|
* Wraps the inner component with ReactFlowProvider
|
|
913
981
|
*/
|
|
914
982
|
declare const AssistantFlow: React__default.FC<AssistantFlowProps>;
|
|
@@ -922,9 +990,13 @@ interface AssistantNodeData extends Record<string, unknown> {
|
|
|
922
990
|
*/
|
|
923
991
|
assistant: Assistant;
|
|
924
992
|
/**
|
|
925
|
-
* Click handler for
|
|
993
|
+
* Click handler for configure button
|
|
926
994
|
*/
|
|
927
|
-
|
|
995
|
+
onConfigure?: (assistant: Assistant) => void;
|
|
996
|
+
/**
|
|
997
|
+
* Click handler for chat button
|
|
998
|
+
*/
|
|
999
|
+
onChat?: (assistant: Assistant) => void;
|
|
928
1000
|
}
|
|
929
1001
|
/**
|
|
930
1002
|
* Custom node component for displaying assistants in the flow
|
|
@@ -970,4 +1042,11 @@ interface SkillNodeData extends Record<string, unknown> {
|
|
|
970
1042
|
*/
|
|
971
1043
|
declare const SkillNode: React__default.FC<NodeProps<Node<SkillNodeData>>>;
|
|
972
1044
|
|
|
973
|
-
|
|
1045
|
+
interface CreateAssistantModalProps {
|
|
1046
|
+
open: boolean;
|
|
1047
|
+
onCancel: () => void;
|
|
1048
|
+
onSuccess?: () => void;
|
|
1049
|
+
}
|
|
1050
|
+
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1051
|
+
|
|
1052
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, AxiomLatticeProvider, type AxiomLatticeProviderProps, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|