@app-studio/web 0.9.37 → 0.9.38
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/components/ChatInput/ChatInput/ChatInput.style.d.ts +31 -0
- package/dist/components/Drawer/Drawer/Drawer.props.d.ts +61 -0
- package/dist/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
- package/dist/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
- package/dist/components/Drawer/Drawer.d.ts +2 -0
- package/dist/components/index.d.ts +2 -22
- package/dist/pages/drawer.page.d.ts +3 -0
- package/dist/utils/apiConfig.d.ts +2 -2
- package/dist/utils/typography.d.ts +3 -4
- package/dist/web.cjs.development.js +2413 -12466
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +2588 -12632
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +2428 -12478
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/components/Accordion.mdx +4 -4
- package/docs/components/Alert.mdx +1 -1
- package/docs/components/Background.mdx +5 -5
- package/docs/components/Badge.mdx +1 -1
- package/docs/components/Card.mdx +8 -8
- package/docs/components/Carousel.mdx +6 -6
- package/docs/components/ColorInput.mdx +1 -1
- package/docs/components/Drawer.mdx +164 -0
- package/docs/components/Gradient.mdx +6 -6
- package/docs/components/HoverCard.mdx +5 -5
- package/docs/components/KanbanBoard.mdx +128 -2
- package/docs/components/Link.mdx +2 -2
- package/docs/components/Menubar.mdx +1 -1
- package/docs/components/Message.mdx +4 -4
- package/docs/components/Modal.mdx +4 -4
- package/docs/components/OKR.mdx +40 -63
- package/docs/components/Tabs.mdx +1 -1
- package/docs/components/ToggleGroup.mdx +4 -4
- package/docs/components/Tooltip.mdx +2 -2
- package/docs/conventions.md +1 -1
- package/package.json +2 -2
- package/dist/components/Calendar/Calendar/Calendar.props.d.ts +0 -82
- package/dist/components/Calendar/Calendar/Calendar.style.d.ts +0 -107
- package/dist/components/Calendar/Calendar/Calendar.utils.d.ts +0 -91
- package/dist/components/Calendar/Calendar/Calendar.view.d.ts +0 -3
- package/dist/components/Calendar/Calendar.d.ts +0 -1
- package/dist/components/Flow/Flow/Flow.props.d.ts +0 -144
- package/dist/components/Flow/Flow/Flow.state.d.ts +0 -95
- package/dist/components/Flow/Flow/Flow.style.d.ts +0 -40
- package/dist/components/Flow/Flow/Flow.type.d.ts +0 -181
- package/dist/components/Flow/Flow/Flow.view.d.ts +0 -28
- package/dist/components/Flow/Flow.d.ts +0 -2
- package/dist/components/Flow/index.d.ts +0 -2
- package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.props.d.ts +0 -52
- package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.state.d.ts +0 -17
- package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.view.d.ts +0 -3
- package/dist/components/KanbanBoard/KanbanBoard.d.ts +0 -3
- package/dist/components/OKR/OKR/OKR.props.d.ts +0 -72
- package/dist/components/OKR/OKR/OKR.style.d.ts +0 -19
- package/dist/components/OKR/OKR/OKR.view.d.ts +0 -4
- package/dist/components/OKR/OKR.d.ts +0 -4
- package/dist/components/Text/Text/Text.props.d.ts +0 -29
- package/dist/components/Text/Text/Text.style.d.ts +0 -27
- package/dist/components/Text/Text/Text.utils.d.ts +0 -2
- package/dist/components/Text/Text/Text.view.d.ts +0 -19
- package/dist/components/Text/Text.d.ts +0 -5
- package/dist/components/Tree/Tree/Tree.props.d.ts +0 -106
- package/dist/components/Tree/Tree/Tree.state.d.ts +0 -38
- package/dist/components/Tree/Tree/Tree.style.d.ts +0 -41
- package/dist/components/Tree/Tree/Tree.type.d.ts +0 -133
- package/dist/components/Tree/Tree/Tree.view.d.ts +0 -36
- package/dist/components/Tree/Tree.d.ts +0 -2
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.props.d.ts +0 -180
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.state.d.ts +0 -24
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.style.d.ts +0 -132
- package/dist/components/adk/AgentChat/AgentChat/AgentChat.view.d.ts +0 -12
- package/dist/components/adk/AgentChat/AgentChat/AgentMessage.d.ts +0 -21
- package/dist/components/adk/AgentChat/AgentChat/AgentRunProgress.d.ts +0 -11
- package/dist/components/adk/AgentChat/AgentChat/AgentTypingIndicator.d.ts +0 -7
- package/dist/components/adk/AgentChat/AgentChat/MessageAttachmentPreview.d.ts +0 -12
- package/dist/components/adk/AgentChat/AgentChat.d.ts +0 -41
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.props.d.ts +0 -213
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.state.d.ts +0 -27
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.style.d.ts +0 -144
- package/dist/components/adk/AgentEval/AgentEval/AgentEval.view.d.ts +0 -12
- package/dist/components/adk/AgentEval/AgentEval/EvaluationCreator.d.ts +0 -17
- package/dist/components/adk/AgentEval/AgentEval/EvaluationList.d.ts +0 -23
- package/dist/components/adk/AgentEval/AgentEval/EvaluationMetrics.d.ts +0 -15
- package/dist/components/adk/AgentEval/AgentEval/EvaluationResults.d.ts +0 -19
- package/dist/components/adk/AgentEval/AgentEval.d.ts +0 -41
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.props.d.ts +0 -170
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.state.d.ts +0 -32
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.style.d.ts +0 -105
- package/dist/components/adk/AgentSession/AgentSession/AgentSession.view.d.ts +0 -12
- package/dist/components/adk/AgentSession/AgentSession/SessionActions.d.ts +0 -20
- package/dist/components/adk/AgentSession/AgentSession/SessionFilters.d.ts +0 -14
- package/dist/components/adk/AgentSession/AgentSession/SessionListItem.d.ts +0 -26
- package/dist/components/adk/AgentSession/AgentSession.d.ts +0 -42
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.props.d.ts +0 -194
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.state.d.ts +0 -27
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.style.d.ts +0 -146
- package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.view.d.ts +0 -12
- package/dist/components/adk/AgentTrace/AgentTrace/TraceEventList.d.ts +0 -20
- package/dist/components/adk/AgentTrace/AgentTrace/TraceFilters.d.ts +0 -13
- package/dist/components/adk/AgentTrace/AgentTrace/TraceMetrics.d.ts +0 -16
- package/dist/components/adk/AgentTrace/AgentTrace/TraceTimeline.d.ts +0 -19
- package/dist/components/adk/AgentTrace/AgentTrace/TraceVisualization.d.ts +0 -19
- package/dist/components/adk/AgentTrace/AgentTrace.d.ts +0 -44
- package/dist/components/adk/useAdk.d.ts +0 -42
- package/dist/pages/adk/CompleteAgentApp.d.ts +0 -30
- package/dist/pages/adk/adkComponents.page.d.ts +0 -8
- package/dist/pages/adk/adkIntegration.page.d.ts +0 -6
- package/dist/pages/adk/agentChat.page.d.ts +0 -8
- package/dist/pages/adk/providers/AdkProvider.d.ts +0 -83
- package/dist/pages/adk/providers/index.d.ts +0 -1
- package/dist/pages/adk/services/AgentService.d.ts +0 -167
- package/dist/pages/adk/services/AgentServiceProvider.d.ts +0 -83
- package/dist/pages/adk/services/AgentServiceUtils.d.ts +0 -176
- package/dist/pages/adk/services/index.d.ts +0 -50
- package/dist/pages/calendar.page.d.ts +0 -3
- package/dist/pages/flow.page.d.ts +0 -3
- package/dist/pages/kanbanBoard.page.d.ts +0 -3
- package/dist/pages/okr.page.d.ts +0 -3
- package/dist/pages/text.page.d.ts +0 -3
- package/dist/pages/tree.page.d.ts +0 -3
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AgentTraceProps, TraceEvent, TraceSpan, TraceMetrics, TraceFilter, TraceExportOptions, VisualizationType } from './AgentTrace.props';
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook for managing AgentTrace state and operations
|
|
5
|
-
*/
|
|
6
|
-
export declare const useAgentTrace: (props: AgentTraceProps) => {
|
|
7
|
-
events: TraceEvent[];
|
|
8
|
-
spans: TraceSpan[];
|
|
9
|
-
selectedEvent: TraceEvent | null;
|
|
10
|
-
selectedSpan: TraceSpan | null;
|
|
11
|
-
metrics: TraceMetrics | null;
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
error: string | null;
|
|
14
|
-
filter: TraceFilter;
|
|
15
|
-
searchQuery: string;
|
|
16
|
-
currentVisualization: VisualizationType;
|
|
17
|
-
fetchTraceEvents: () => Promise<void>;
|
|
18
|
-
fetchTraceSpans: () => Promise<void>;
|
|
19
|
-
selectEvent: (eventId: string) => void;
|
|
20
|
-
selectSpan: (spanId: string) => void;
|
|
21
|
-
updateFilter: (newFilter: TraceFilter) => void;
|
|
22
|
-
exportTrace: (options: TraceExportOptions) => Promise<void>;
|
|
23
|
-
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
24
|
-
setCurrentVisualization: import("react").Dispatch<import("react").SetStateAction<VisualizationType>>;
|
|
25
|
-
setError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
26
|
-
filteredEvents: TraceEvent[];
|
|
27
|
-
};
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { ViewProps } from 'app-studio';
|
|
2
|
-
/**
|
|
3
|
-
* Default styles for AgentTrace component
|
|
4
|
-
* Following the app-studio design system with 4px grid, Inter/Geist fonts, and neutral palette
|
|
5
|
-
*/
|
|
6
|
-
export declare const DefaultAgentTraceStyles: {
|
|
7
|
-
container: ViewProps;
|
|
8
|
-
header: ViewProps;
|
|
9
|
-
timeline: ViewProps;
|
|
10
|
-
eventList: ViewProps;
|
|
11
|
-
eventItem: ViewProps;
|
|
12
|
-
selectedEventItem: ViewProps;
|
|
13
|
-
eventHeader: ViewProps;
|
|
14
|
-
eventType: ViewProps;
|
|
15
|
-
eventTypeRequest: ViewProps;
|
|
16
|
-
eventTypeResponse: ViewProps;
|
|
17
|
-
eventTypeError: ViewProps;
|
|
18
|
-
eventTypeFunction: ViewProps;
|
|
19
|
-
eventTypeSystem: ViewProps;
|
|
20
|
-
eventContent: ViewProps;
|
|
21
|
-
eventMetadata: ViewProps;
|
|
22
|
-
eventDuration: ViewProps;
|
|
23
|
-
eventTimestamp: ViewProps;
|
|
24
|
-
metrics: ViewProps;
|
|
25
|
-
metricsGrid: ViewProps;
|
|
26
|
-
metricCard: ViewProps;
|
|
27
|
-
metricValue: ViewProps;
|
|
28
|
-
metricLabel: ViewProps;
|
|
29
|
-
visualization: ViewProps;
|
|
30
|
-
timelineContainer: ViewProps;
|
|
31
|
-
timelineAxis: ViewProps;
|
|
32
|
-
timelineEvent: ViewProps;
|
|
33
|
-
timelineSpan: ViewProps;
|
|
34
|
-
filters: ViewProps;
|
|
35
|
-
filterGroup: ViewProps;
|
|
36
|
-
filterLabel: ViewProps;
|
|
37
|
-
tagContainer: ViewProps;
|
|
38
|
-
tag: ViewProps;
|
|
39
|
-
emptyState: ViewProps;
|
|
40
|
-
loadingState: ViewProps;
|
|
41
|
-
errorState: ViewProps;
|
|
42
|
-
searchInput: ViewProps;
|
|
43
|
-
exportButton: ViewProps;
|
|
44
|
-
refreshButton: ViewProps;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Event type color mapping
|
|
48
|
-
*/
|
|
49
|
-
export declare const EventTypeColors: {
|
|
50
|
-
llm_request: string;
|
|
51
|
-
llm_response: string;
|
|
52
|
-
function_call: string;
|
|
53
|
-
function_response: string;
|
|
54
|
-
user_input: string;
|
|
55
|
-
agent_output: string;
|
|
56
|
-
error: string;
|
|
57
|
-
system: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Size variants for AgentTrace
|
|
61
|
-
*/
|
|
62
|
-
export declare const AgentTraceSizes: {
|
|
63
|
-
sm: {
|
|
64
|
-
container: {
|
|
65
|
-
height: string;
|
|
66
|
-
};
|
|
67
|
-
timeline: {
|
|
68
|
-
height: string;
|
|
69
|
-
};
|
|
70
|
-
eventList: {
|
|
71
|
-
minHeight: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
md: {
|
|
75
|
-
container: {
|
|
76
|
-
height: string;
|
|
77
|
-
};
|
|
78
|
-
timeline: {
|
|
79
|
-
height: string;
|
|
80
|
-
};
|
|
81
|
-
eventList: {
|
|
82
|
-
minHeight: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
lg: {
|
|
86
|
-
container: {
|
|
87
|
-
height: string;
|
|
88
|
-
};
|
|
89
|
-
timeline: {
|
|
90
|
-
height: string;
|
|
91
|
-
};
|
|
92
|
-
eventList: {
|
|
93
|
-
minHeight: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
xl: {
|
|
97
|
-
container: {
|
|
98
|
-
height: string;
|
|
99
|
-
};
|
|
100
|
-
timeline: {
|
|
101
|
-
height: string;
|
|
102
|
-
};
|
|
103
|
-
eventList: {
|
|
104
|
-
minHeight: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Theme variants for AgentTrace
|
|
110
|
-
*/
|
|
111
|
-
export declare const AgentTraceThemes: {
|
|
112
|
-
light: {
|
|
113
|
-
container: {
|
|
114
|
-
backgroundColor: string;
|
|
115
|
-
};
|
|
116
|
-
header: {
|
|
117
|
-
backgroundColor: string;
|
|
118
|
-
};
|
|
119
|
-
timeline: {
|
|
120
|
-
backgroundColor: string;
|
|
121
|
-
};
|
|
122
|
-
eventList: {
|
|
123
|
-
backgroundColor: string;
|
|
124
|
-
};
|
|
125
|
-
metrics: {
|
|
126
|
-
backgroundColor: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
dark: {
|
|
130
|
-
container: {
|
|
131
|
-
backgroundColor: string;
|
|
132
|
-
};
|
|
133
|
-
header: {
|
|
134
|
-
backgroundColor: string;
|
|
135
|
-
};
|
|
136
|
-
timeline: {
|
|
137
|
-
backgroundColor: string;
|
|
138
|
-
};
|
|
139
|
-
eventList: {
|
|
140
|
-
backgroundColor: string;
|
|
141
|
-
};
|
|
142
|
-
metrics: {
|
|
143
|
-
backgroundColor: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AgentTraceProps } from './AgentTrace.props';
|
|
3
|
-
import { useAgentTrace } from './AgentTrace.state';
|
|
4
|
-
export interface AgentTraceViewProps extends Omit<AgentTraceProps, 'filter'>, ReturnType<typeof useAgentTrace> {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* AgentTrace View Component
|
|
8
|
-
*
|
|
9
|
-
* Renders the complete trace visualization interface with timeline, events, and metrics
|
|
10
|
-
*/
|
|
11
|
-
declare const AgentTraceView: React.FC<AgentTraceViewProps>;
|
|
12
|
-
export default AgentTraceView;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TraceEvent } from './AgentTrace.props';
|
|
3
|
-
export interface TraceEventListProps {
|
|
4
|
-
events: TraceEvent[];
|
|
5
|
-
selectedEvent?: TraceEvent | null;
|
|
6
|
-
onEventSelect: (eventId: string) => void;
|
|
7
|
-
showDetails?: boolean;
|
|
8
|
-
compactMode?: boolean;
|
|
9
|
-
views?: {
|
|
10
|
-
container?: any;
|
|
11
|
-
eventItem?: any;
|
|
12
|
-
selectedEventItem?: any;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* TraceEventList Component
|
|
17
|
-
*
|
|
18
|
-
* Renders a list of trace events with selection and detail display
|
|
19
|
-
*/
|
|
20
|
-
export declare const TraceEventList: React.FC<TraceEventListProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TraceFilter } from './AgentTrace.props';
|
|
3
|
-
export interface TraceFiltersProps {
|
|
4
|
-
filter: TraceFilter;
|
|
5
|
-
onFilterChange: (filter: TraceFilter) => void;
|
|
6
|
-
eventTypes: string[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* TraceFilters Component
|
|
10
|
-
*
|
|
11
|
-
* Renders filter controls for trace events
|
|
12
|
-
*/
|
|
13
|
-
export declare const TraceFilters: React.FC<TraceFiltersProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TraceMetrics as TraceMetricsType } from './AgentTrace.props';
|
|
3
|
-
export interface TraceMetricsProps {
|
|
4
|
-
metrics: TraceMetricsType;
|
|
5
|
-
showPerformanceMetrics?: boolean;
|
|
6
|
-
compactMode?: boolean;
|
|
7
|
-
views?: {
|
|
8
|
-
container?: any;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* TraceMetrics Component
|
|
13
|
-
*
|
|
14
|
-
* Displays performance metrics and statistics for trace events
|
|
15
|
-
*/
|
|
16
|
-
export declare const TraceMetrics: React.FC<TraceMetricsProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TraceEvent, TraceSpan } from './AgentTrace.props';
|
|
3
|
-
export interface TraceTimelineProps {
|
|
4
|
-
events: TraceEvent[];
|
|
5
|
-
spans: TraceSpan[];
|
|
6
|
-
selectedEvent?: TraceEvent | null;
|
|
7
|
-
selectedSpan?: TraceSpan | null;
|
|
8
|
-
onEventSelect: (eventId: string) => void;
|
|
9
|
-
onSpanSelect: (spanId: string) => void;
|
|
10
|
-
views?: {
|
|
11
|
-
container?: any;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* TraceTimeline Component
|
|
16
|
-
*
|
|
17
|
-
* Renders a timeline visualization of trace events and spans
|
|
18
|
-
*/
|
|
19
|
-
export declare const TraceTimeline: React.FC<TraceTimelineProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TraceEvent, TraceSpan, VisualizationType } from './AgentTrace.props';
|
|
3
|
-
export interface TraceVisualizationProps {
|
|
4
|
-
events: TraceEvent[];
|
|
5
|
-
spans: TraceSpan[];
|
|
6
|
-
selectedEvent?: TraceEvent | null;
|
|
7
|
-
visualizationType: VisualizationType;
|
|
8
|
-
onVisualizationChange: (type: VisualizationType) => void;
|
|
9
|
-
onEventSelect: (eventId: string) => void;
|
|
10
|
-
views?: {
|
|
11
|
-
container?: any;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* TraceVisualization Component
|
|
16
|
-
*
|
|
17
|
-
* Renders different visualization types for trace data
|
|
18
|
-
*/
|
|
19
|
-
export declare const TraceVisualization: React.FC<TraceVisualizationProps>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AgentTraceProps } from './AgentTrace/AgentTrace.props';
|
|
3
|
-
/**
|
|
4
|
-
* AgentTrace Component
|
|
5
|
-
*
|
|
6
|
-
* A comprehensive trace visualization component for ADK agents.
|
|
7
|
-
* Displays execution traces, events, and performance metrics in an interactive format.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <AgentTrace
|
|
12
|
-
* sessionId="session-123"
|
|
13
|
-
* userId="user123"
|
|
14
|
-
* appName="my-agent"
|
|
15
|
-
* onEventSelect={(event) => console.log('Event selected:', event)}
|
|
16
|
-
* />
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* // With custom visualization and filtering
|
|
22
|
-
* <AgentTrace
|
|
23
|
-
* sessionId="session-123"
|
|
24
|
-
* userId="user123"
|
|
25
|
-
* appName="my-agent"
|
|
26
|
-
* showTimeline={true}
|
|
27
|
-
* showMetrics={true}
|
|
28
|
-
* enableFiltering={true}
|
|
29
|
-
* enableExport={true}
|
|
30
|
-
* visualizationType="tree"
|
|
31
|
-
* autoRefresh={true}
|
|
32
|
-
* refreshInterval={5000}
|
|
33
|
-
* views={{
|
|
34
|
-
* container: { backgroundColor: 'color.gray.50' },
|
|
35
|
-
* timeline: { height: '200px' },
|
|
36
|
-
* eventList: { maxHeight: '400px' }
|
|
37
|
-
* }}
|
|
38
|
-
* />
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
declare const AgentTrace: React.FC<AgentTraceProps>;
|
|
42
|
-
export default AgentTrace;
|
|
43
|
-
export { AgentTrace };
|
|
44
|
-
export type { AgentTraceProps };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { CreateSessionParams, AgentRunRequest, SessionResponse } from '../../services/api';
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook for ADK operations
|
|
5
|
-
* Integrates with the existing ADK service and auth store
|
|
6
|
-
*/
|
|
7
|
-
export declare const useAdk: () => {
|
|
8
|
-
isAuthenticated: any;
|
|
9
|
-
user: any;
|
|
10
|
-
currentSessionId: string | null;
|
|
11
|
-
sessions: SessionResponse[];
|
|
12
|
-
createSession: (params: CreateSessionParams) => void;
|
|
13
|
-
loadSessions: (appName?: string | undefined) => void;
|
|
14
|
-
loadSession: (sessionId: string) => void;
|
|
15
|
-
deleteSession: (sessionId: string) => void;
|
|
16
|
-
runAgent: (request: AgentRunRequest) => void;
|
|
17
|
-
runAgentStreaming: (request: AgentRunRequest) => void;
|
|
18
|
-
checkHealth: () => void;
|
|
19
|
-
getServiceInfo: () => void;
|
|
20
|
-
setCurrentSessionId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
21
|
-
isCreatingSession: boolean;
|
|
22
|
-
isLoadingSessions: boolean;
|
|
23
|
-
isLoadingSession: boolean;
|
|
24
|
-
isDeletingSession: boolean;
|
|
25
|
-
isRunningAgent: boolean;
|
|
26
|
-
isRunningAgentStreaming: boolean;
|
|
27
|
-
isCheckingHealth: boolean;
|
|
28
|
-
isLoadingServiceInfo: boolean;
|
|
29
|
-
sessionData: any;
|
|
30
|
-
agentResponse: any;
|
|
31
|
-
agentStreamingResponse: any;
|
|
32
|
-
healthData: any;
|
|
33
|
-
serviceInfo: any;
|
|
34
|
-
createSessionError: Error | undefined;
|
|
35
|
-
listSessionsError: Error | undefined;
|
|
36
|
-
getSessionError: Error | undefined;
|
|
37
|
-
deleteSessionError: Error | undefined;
|
|
38
|
-
runAgentError: Error | undefined;
|
|
39
|
-
runAgentStreamingError: Error | undefined;
|
|
40
|
-
healthError: Error | undefined;
|
|
41
|
-
serviceInfoError: Error | undefined;
|
|
42
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Complete Agent Application Example
|
|
4
|
-
*
|
|
5
|
-
* This example demonstrates how to integrate all ADK components
|
|
6
|
-
* into a complete agent application with proper service management,
|
|
7
|
-
* state coordination, and user experience.
|
|
8
|
-
*/
|
|
9
|
-
interface CompleteAgentAppProps {
|
|
10
|
-
appName: string;
|
|
11
|
-
userId: string;
|
|
12
|
-
apiBaseUrl: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Complete Agent Application with Service Provider
|
|
16
|
-
*/
|
|
17
|
-
declare const CompleteAgentApp: React.FC<CompleteAgentAppProps>;
|
|
18
|
-
/**
|
|
19
|
-
* Usage Example
|
|
20
|
-
*/
|
|
21
|
-
export declare const CompleteAgentAppExample: () => React.JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* Development Example with Local API
|
|
24
|
-
*/
|
|
25
|
-
export declare const DevelopmentExample: () => React.JSX.Element;
|
|
26
|
-
/**
|
|
27
|
-
* Production Example with Environment Variables
|
|
28
|
-
*/
|
|
29
|
-
export declare const ProductionExample: () => React.JSX.Element;
|
|
30
|
-
export default CompleteAgentApp;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* ADK Context Type
|
|
4
|
-
*/
|
|
5
|
-
interface AdkContextType {
|
|
6
|
-
isAuthenticated: boolean;
|
|
7
|
-
user: any;
|
|
8
|
-
currentSessionId: string | null;
|
|
9
|
-
sessions: any[];
|
|
10
|
-
createSession: (params: any) => void;
|
|
11
|
-
loadSessions: (appName?: string) => void;
|
|
12
|
-
loadSession: (sessionId: string) => void;
|
|
13
|
-
deleteSession: (sessionId: string) => void;
|
|
14
|
-
runAgent: (request: any) => void;
|
|
15
|
-
runAgentStreaming: (request: any) => void;
|
|
16
|
-
checkHealth: () => void;
|
|
17
|
-
getServiceInfo: () => void;
|
|
18
|
-
setCurrentSessionId: (sessionId: string | null) => void;
|
|
19
|
-
isCreatingSession: boolean;
|
|
20
|
-
isLoadingSessions: boolean;
|
|
21
|
-
isLoadingSession: boolean;
|
|
22
|
-
isDeletingSession: boolean;
|
|
23
|
-
isRunningAgent: boolean;
|
|
24
|
-
isRunningAgentStreaming: boolean;
|
|
25
|
-
isCheckingHealth: boolean;
|
|
26
|
-
isLoadingServiceInfo: boolean;
|
|
27
|
-
sessionData: any;
|
|
28
|
-
agentResponse: any;
|
|
29
|
-
agentStreamingResponse: any;
|
|
30
|
-
healthData: any;
|
|
31
|
-
serviceInfo: any;
|
|
32
|
-
createSessionError: any;
|
|
33
|
-
listSessionsError: any;
|
|
34
|
-
getSessionError: any;
|
|
35
|
-
deleteSessionError: any;
|
|
36
|
-
runAgentError: any;
|
|
37
|
-
runAgentStreamingError: any;
|
|
38
|
-
healthError: any;
|
|
39
|
-
serviceInfoError: any;
|
|
40
|
-
isConnected: boolean;
|
|
41
|
-
error: string | null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* ADK Provider Props
|
|
45
|
-
*/
|
|
46
|
-
interface AdkProviderProps {
|
|
47
|
-
children: ReactNode;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* ADK Provider Component
|
|
51
|
-
*
|
|
52
|
-
* Provides ADK functionality using the existing API services and auth store
|
|
53
|
-
*/
|
|
54
|
-
export declare const AdkProvider: React.FC<AdkProviderProps>;
|
|
55
|
-
/**
|
|
56
|
-
* Hook to use ADK context
|
|
57
|
-
*/
|
|
58
|
-
export declare const useAdkContext: () => AdkContextType;
|
|
59
|
-
/**
|
|
60
|
-
* Legacy hook for compatibility with existing components
|
|
61
|
-
*/
|
|
62
|
-
export declare const useAgentService: () => {
|
|
63
|
-
isConnected: boolean;
|
|
64
|
-
error: string | null;
|
|
65
|
-
service: {
|
|
66
|
-
createSession: (params: any) => void;
|
|
67
|
-
listSessions: (appName?: string | undefined) => void;
|
|
68
|
-
getSession: (sessionId: string) => void;
|
|
69
|
-
deleteSession: (sessionId: string) => void;
|
|
70
|
-
runAgent: (request: any) => void;
|
|
71
|
-
runAgentStreaming: (request: any) => void;
|
|
72
|
-
healthCheck: () => void;
|
|
73
|
-
getServiceInfo: () => void;
|
|
74
|
-
};
|
|
75
|
-
currentSessionId: string | null;
|
|
76
|
-
sessions: any[];
|
|
77
|
-
isCreatingSession: boolean;
|
|
78
|
-
isLoadingSessions: boolean;
|
|
79
|
-
isRunningAgent: boolean;
|
|
80
|
-
agentResponse: any;
|
|
81
|
-
sessionData: any;
|
|
82
|
-
};
|
|
83
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AdkProvider, useAdkContext, useAgentService } from './AdkProvider';
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Service Integration
|
|
3
|
-
*
|
|
4
|
-
* Enhanced service layer for backend communication with ADK agents.
|
|
5
|
-
* Provides a unified interface for all agent-related operations.
|
|
6
|
-
*/
|
|
7
|
-
import { AgentSession, AgentMessage, AgentRunRequest } from '../../../components/adk/AgentChat/AgentChat/AgentChat.props';
|
|
8
|
-
import { TraceEvent, TraceSpan, TraceMetrics } from '../../../components/adk/AgentTrace/AgentTrace/AgentTrace.props';
|
|
9
|
-
import { EvaluationRun, EvaluationTestCase, EvaluationMetric } from '../../../components/adk/AgentEval/AgentEval/AgentEval.props';
|
|
10
|
-
/**
|
|
11
|
-
* Configuration for the Agent Service
|
|
12
|
-
*/
|
|
13
|
-
export interface AgentServiceConfig {
|
|
14
|
-
baseUrl: string;
|
|
15
|
-
timeout?: number;
|
|
16
|
-
retryCount?: number;
|
|
17
|
-
enableLogging?: boolean;
|
|
18
|
-
apiKey?: string;
|
|
19
|
-
headers?: Record<string, string>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Event listener types for real-time updates
|
|
23
|
-
*/
|
|
24
|
-
export declare type AgentEventListener = (event: any) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Enhanced Agent Service Class
|
|
27
|
-
*
|
|
28
|
-
* Provides a comprehensive interface for interacting with ADK agents,
|
|
29
|
-
* including session management, messaging, tracing, and evaluation.
|
|
30
|
-
*/
|
|
31
|
-
export declare class AgentService {
|
|
32
|
-
private config;
|
|
33
|
-
private eventListeners;
|
|
34
|
-
private activeConnections;
|
|
35
|
-
constructor(config: AgentServiceConfig);
|
|
36
|
-
/**
|
|
37
|
-
* Session Management
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Create a new agent session
|
|
41
|
-
*/
|
|
42
|
-
createSession(appName: string, userId: string, metadata?: any): Promise<AgentSession>;
|
|
43
|
-
/**
|
|
44
|
-
* Get session details
|
|
45
|
-
*/
|
|
46
|
-
getSession(sessionId: string): Promise<AgentSession>;
|
|
47
|
-
/**
|
|
48
|
-
* List sessions for a user
|
|
49
|
-
*/
|
|
50
|
-
listSessions(userId: string, appName?: string, limit?: number): Promise<AgentSession[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete a session
|
|
53
|
-
*/
|
|
54
|
-
deleteSession(sessionId: string): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Messaging
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
|
-
* Send a message to an agent (non-streaming)
|
|
60
|
-
*/
|
|
61
|
-
sendMessage(request: AgentRunRequest): Promise<any>;
|
|
62
|
-
/**
|
|
63
|
-
* Send a message to an agent with streaming response
|
|
64
|
-
*/
|
|
65
|
-
sendMessageStreaming(request: AgentRunRequest, onMessage: (message: AgentMessage) => void, onError?: (error: Error) => void, onComplete?: () => void): Promise<void>;
|
|
66
|
-
/**
|
|
67
|
-
* Cancel a streaming request
|
|
68
|
-
*/
|
|
69
|
-
cancelStreaming(sessionId: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* Tracing
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* Get trace events for a session
|
|
75
|
-
*/
|
|
76
|
-
getTraceEvents(sessionId: string, filters?: {
|
|
77
|
-
eventTypes?: string[];
|
|
78
|
-
startTime?: number;
|
|
79
|
-
endTime?: number;
|
|
80
|
-
limit?: number;
|
|
81
|
-
}): Promise<TraceEvent[]>;
|
|
82
|
-
/**
|
|
83
|
-
* Get trace spans for a session
|
|
84
|
-
*/
|
|
85
|
-
getTraceSpans(sessionId: string): Promise<TraceSpan[]>;
|
|
86
|
-
/**
|
|
87
|
-
* Get trace metrics for a session
|
|
88
|
-
*/
|
|
89
|
-
getTraceMetrics(sessionId: string): Promise<TraceMetrics>;
|
|
90
|
-
/**
|
|
91
|
-
* Subscribe to real-time trace updates
|
|
92
|
-
*/
|
|
93
|
-
subscribeToTraceUpdates(sessionId: string, onUpdate: (update: any) => void, onError?: (error: Error) => void): void;
|
|
94
|
-
/**
|
|
95
|
-
* Evaluation
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* Create a new evaluation
|
|
99
|
-
*/
|
|
100
|
-
createEvaluation(name: string, appName: string, userId: string, testCases: EvaluationTestCase[], metrics: EvaluationMetric[], config?: any): Promise<EvaluationRun>;
|
|
101
|
-
/**
|
|
102
|
-
* Start an evaluation
|
|
103
|
-
*/
|
|
104
|
-
startEvaluation(evaluationId: string): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Cancel an evaluation
|
|
107
|
-
*/
|
|
108
|
-
cancelEvaluation(evaluationId: string): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Get evaluation details
|
|
111
|
-
*/
|
|
112
|
-
getEvaluation(evaluationId: string): Promise<EvaluationRun>;
|
|
113
|
-
/**
|
|
114
|
-
* List evaluations
|
|
115
|
-
*/
|
|
116
|
-
listEvaluations(appName: string, userId: string, limit?: number): Promise<EvaluationRun[]>;
|
|
117
|
-
/**
|
|
118
|
-
* Delete an evaluation
|
|
119
|
-
*/
|
|
120
|
-
deleteEvaluation(evaluationId: string): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Subscribe to evaluation updates
|
|
123
|
-
*/
|
|
124
|
-
subscribeToEvaluationUpdates(userId: string, onUpdate: (update: any) => void, onError?: (error: Error) => void): void;
|
|
125
|
-
/**
|
|
126
|
-
* Utility Methods
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* Make an HTTP request with retry logic
|
|
130
|
-
*/
|
|
131
|
-
private request;
|
|
132
|
-
/**
|
|
133
|
-
* Get default headers for requests
|
|
134
|
-
*/
|
|
135
|
-
private getHeaders;
|
|
136
|
-
/**
|
|
137
|
-
* Event Management
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Add event listener
|
|
141
|
-
*/
|
|
142
|
-
addEventListener(event: string, listener: AgentEventListener): void;
|
|
143
|
-
/**
|
|
144
|
-
* Remove event listener
|
|
145
|
-
*/
|
|
146
|
-
removeEventListener(event: string, listener: AgentEventListener): void;
|
|
147
|
-
/**
|
|
148
|
-
* Emit event to listeners
|
|
149
|
-
*/
|
|
150
|
-
private emit;
|
|
151
|
-
/**
|
|
152
|
-
* Cleanup all connections and listeners
|
|
153
|
-
*/
|
|
154
|
-
cleanup(): void;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Default Agent Service Instance
|
|
158
|
-
*
|
|
159
|
-
* Pre-configured service instance for common use cases
|
|
160
|
-
*/
|
|
161
|
-
export declare const createAgentService: (config: AgentServiceConfig) => AgentService;
|
|
162
|
-
/**
|
|
163
|
-
* Agent Service Hook for React Components
|
|
164
|
-
*
|
|
165
|
-
* Provides a convenient way to use the Agent Service in React components
|
|
166
|
-
*/
|
|
167
|
-
export declare const useAgentServiceHook: (config: AgentServiceConfig) => AgentService;
|