diff options
Diffstat (limited to 'src')
4 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/nodes/chatbot/agentsystem/Agent.ts b/src/client/views/nodes/chatbot/agentsystem/Agent.ts index 1cf6ca030..8338879cf 100644 --- a/src/client/views/nodes/chatbot/agentsystem/Agent.ts +++ b/src/client/views/nodes/chatbot/agentsystem/Agent.ts @@ -22,6 +22,7 @@ import { DocumentOptions } from '../../../../documents/Documents'; import { CreateAnyDocumentTool } from '../tools/CreateAnyDocTool'; import { ImageCreationTool } from '../tools/ImageCreationTool'; import { DictionaryTool } from '../tools/DictionaryTool'; +//import { DictionaryTool } from '../tools/DictionaryTool'; dotenv.config(); diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx index d2931106a..37059c635 100644 --- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx +++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx @@ -431,7 +431,7 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { switch (doc_type.toLowerCase()) { case 'text': - doc = Docs.Create.TextDocument(data || '', options); + doc = Docs.Create.PdfDocument(data || '', { ...options, text: RTFCast(data) }); break; case 'pdf': doc = Docs.Create.PdfDocument(data || '', options); @@ -469,6 +469,9 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { case 'chat': doc = Docs.Create.ChatDocument(options); break; + case 'note_taking': + doc = Docs.Create.NoteTakingDocument([Docs.Create.TextDocument(data!)], options); + break; case 'script': const result = !data!.trim() ? ({ compiled: false, errors: [] } as CompileError) : CompileScript(data!, {}); const script_field = result.compiled ? new ScriptField(result, undefined, data!) : undefined; diff --git a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts index 36f133503..5f3af8296 100644 --- a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts +++ b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts @@ -16,7 +16,7 @@ const supportedDocumentTypes: supportedDocumentTypesType[] = ['text', 'html', 'e const documentTypesInfo = { text: { options: ['title', 'backgroundColor', 'fontColor', 'text_align', 'layout'], - dataDescription: 'The text content of the document.', + dataDescription: 'The text content of the text document. Should contain all the text content.', }, html: { options: ['title', 'backgroundColor', 'layout'], diff --git a/src/client/views/nodes/chatbot/tools/DictionaryTool.ts b/src/client/views/nodes/chatbot/tools/DictionaryTool.ts index fa554e7b3..377101641 100644 --- a/src/client/views/nodes/chatbot/tools/DictionaryTool.ts +++ b/src/client/views/nodes/chatbot/tools/DictionaryTool.ts @@ -2,7 +2,6 @@ import { Observation } from '../types/types'; import { ParametersType, ToolInfo } from '../types/tool_types'; import { BaseTool } from './BaseTool'; -// Define the tool's parameters const dictionaryToolParams = [ { name: 'word', @@ -14,7 +13,6 @@ const dictionaryToolParams = [ type DictionaryToolParamsType = typeof dictionaryToolParams; -// Define the tool's metadata and rules const dictionaryToolInfo: ToolInfo<DictionaryToolParamsType> = { name: 'dictionary', citationRules: 'No citation needed.', |