mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 23:14:37 +00:00
feat(memory): add Conversation as a memory source kind (#3441)
This commit is contained in:
@@ -45,6 +45,7 @@ interface AddMemorySourceDialogProps {
|
||||
|
||||
const ALL_KINDS: SourceKind[] = [
|
||||
'composio',
|
||||
'conversation',
|
||||
'folder',
|
||||
'github_repo',
|
||||
'rss_feed',
|
||||
@@ -144,6 +145,8 @@ export function AddMemorySourceDialog({ open, onClose, onAdded }: AddMemorySourc
|
||||
params.toolkit = toolkit;
|
||||
params.connection_id = connectionId;
|
||||
break;
|
||||
case 'conversation':
|
||||
break;
|
||||
case 'folder':
|
||||
params.path = path.trim();
|
||||
params.glob = glob.trim() || '**/*.md';
|
||||
@@ -318,6 +321,8 @@ function isKindFieldsValid(
|
||||
switch (kind) {
|
||||
case 'composio':
|
||||
return fields.connectionId.length > 0;
|
||||
case 'conversation':
|
||||
return true;
|
||||
case 'folder':
|
||||
return fields.path.trim().length > 0;
|
||||
case 'github_repo':
|
||||
@@ -446,6 +451,8 @@ function KindFields(props: KindFieldsProps) {
|
||||
switch (props.kind) {
|
||||
case 'composio':
|
||||
return <ComposioPicker {...props} />;
|
||||
case 'conversation':
|
||||
return null;
|
||||
case 'folder':
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user