🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import type { SearchFilesState } from '@lobechat/tool-runtime';
import { memo } from 'react';
import SearchView from './SearchView';
interface SearchQueryViewProps {
args: any;
messageId: string;
pluginState?: SearchFilesState;
}
const SearchQueryView = memo<SearchQueryViewProps>(({ messageId, args, pluginState }) => {
const { isLoading } = useToolRenderCapabilities();
const loading = isLoading?.(messageId);
const searchResults = pluginState?.results || [];
return (
<SearchView
defaultQuery={args?.keywords || args?.keyword || args?.query || ''}
resultsNumber={searchResults.length}
searching={loading || !pluginState}
/>
);
});
export default SearchQueryView;