mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
- Added a new write_todos tool to facilitate the creation and management of planning lists within the chat interface. - Updated system prompt with detailed instructions on using the write_todos tool, including usage patterns and restrictions. - Enhanced the chat message handling to support the new tool, ensuring proper integration and user experience. - Implemented UI components for displaying and interacting with the planning lists, including progress tracking and status indicators.
76 lines
1.6 KiB
TypeScript
76 lines
1.6 KiB
TypeScript
/**
|
|
* Tool UI Components
|
|
*
|
|
* This module exports custom UI components for assistant tools.
|
|
* These components are registered with assistant-ui to render
|
|
* rich UI when specific tools are called by the agent.
|
|
*/
|
|
|
|
export {
|
|
Article,
|
|
ArticleErrorBoundary,
|
|
ArticleLoading,
|
|
type ArticleProps,
|
|
ArticleSkeleton,
|
|
parseSerializableArticle,
|
|
type SerializableArticle,
|
|
} from "./article";
|
|
export { Audio } from "./audio";
|
|
export {
|
|
type DeepAgentThinkingArgs,
|
|
type DeepAgentThinkingResult,
|
|
DeepAgentThinkingToolUI,
|
|
InlineThinkingDisplay,
|
|
type ThinkingStep,
|
|
} from "./deepagent-thinking";
|
|
export {
|
|
type DisplayImageArgs,
|
|
type DisplayImageResult,
|
|
DisplayImageToolUI,
|
|
} from "./display-image";
|
|
export { GeneratePodcastToolUI } from "./generate-podcast";
|
|
export {
|
|
Image,
|
|
ImageErrorBoundary,
|
|
ImageLoading,
|
|
type ImageProps,
|
|
ImageSkeleton,
|
|
parseSerializableImage,
|
|
type SerializableImage,
|
|
} from "./image";
|
|
export {
|
|
type LinkPreviewArgs,
|
|
type LinkPreviewResult,
|
|
LinkPreviewToolUI,
|
|
type MultiLinkPreviewArgs,
|
|
type MultiLinkPreviewResult,
|
|
MultiLinkPreviewToolUI,
|
|
} from "./link-preview";
|
|
export {
|
|
MediaCard,
|
|
MediaCardErrorBoundary,
|
|
MediaCardLoading,
|
|
type MediaCardProps,
|
|
MediaCardSkeleton,
|
|
parseSerializableMediaCard,
|
|
type SerializableMediaCard,
|
|
} from "./media-card";
|
|
export {
|
|
type ScrapeWebpageArgs,
|
|
type ScrapeWebpageResult,
|
|
ScrapeWebpageToolUI,
|
|
} from "./scrape-webpage";
|
|
export {
|
|
Plan,
|
|
PlanErrorBoundary,
|
|
type PlanProps,
|
|
parseSerializablePlan,
|
|
type SerializablePlan,
|
|
type PlanTodo,
|
|
type TodoStatus,
|
|
} from "./plan";
|
|
export {
|
|
WriteTodosToolUI,
|
|
type WriteTodosArgs,
|
|
type WriteTodosResult,
|
|
} from "./write-todos";
|