ai response loop with context for long answers
This commit is contained in:
parent
d2b6820812
commit
e54cc48b15
162 changed files with 954 additions and 2329 deletions
|
|
@ -706,8 +706,10 @@ class AiService:
|
|||
prompt: str,
|
||||
documents: Optional[List[ChatDocument]] = None,
|
||||
placeholders: Optional[List[PromptPlaceholder]] = None,
|
||||
options: Optional[AiCallOptions] = None
|
||||
) -> str:
|
||||
options: Optional[AiCallOptions] = None,
|
||||
outputFormat: Optional[str] = None,
|
||||
title: Optional[str] = None
|
||||
) -> Union[str, Dict[str, Any]]:
|
||||
"""
|
||||
Unified AI call interface that automatically routes to appropriate handler.
|
||||
|
||||
|
|
@ -716,9 +718,11 @@ class AiService:
|
|||
documents: Optional list of documents to process
|
||||
placeholders: Optional list of placeholder replacements for planning calls
|
||||
options: AI call configuration options
|
||||
outputFormat: Optional output format (html, pdf, docx, txt, md, json, csv, xlsx) for document generation
|
||||
title: Optional title for generated documents
|
||||
|
||||
Returns:
|
||||
AI response as string
|
||||
AI response as string, or dict with documents if outputFormat is specified
|
||||
|
||||
Raises:
|
||||
Exception: If all available models fail
|
||||
|
|
@ -740,6 +744,10 @@ class AiService:
|
|||
call_type = self._determineCallType(documents, options.operationType)
|
||||
options.callType = call_type
|
||||
|
||||
# Handle document generation with specific output format
|
||||
if outputFormat:
|
||||
return await self._callAiWithDocumentGeneration(prompt, documents, options, outputFormat, title)
|
||||
|
||||
if call_type == "planning":
|
||||
return await self._callAiPlanning(prompt, placeholders_dict, placeholders_meta, options)
|
||||
else:
|
||||
|
|
@ -849,6 +857,24 @@ class AiService:
|
|||
logger.debug(f"AI model selected (planning): {getattr(response, 'modelName', 'unknown')}")
|
||||
except Exception:
|
||||
pass
|
||||
# Write full planning response as JSON dump when possible (no duplicates)
|
||||
try:
|
||||
import json
|
||||
content = response.content
|
||||
cleaned = content.strip()
|
||||
if cleaned.startswith('```json'):
|
||||
cleaned = cleaned[7:]
|
||||
if cleaned.endswith('```'):
|
||||
cleaned = cleaned[:-3]
|
||||
cleaned = cleaned.strip()
|
||||
obj = json.loads(cleaned)
|
||||
self._writeTraceLog("AI Planning Raw Response", obj)
|
||||
except Exception:
|
||||
# Fallback to plain text once
|
||||
try:
|
||||
self._writeTraceLog("AI Planning Raw Response", response.content)
|
||||
except Exception:
|
||||
pass
|
||||
return response.content
|
||||
|
||||
async def _callAiText(
|
||||
|
|
@ -943,27 +969,95 @@ class AiService:
|
|||
|
||||
# Check size and reduce if needed
|
||||
full_prompt = prompt + "\n\n" + context if context else prompt
|
||||
|
||||
# Add generic completeness guidance: first vs subsequent (based on presence of context)
|
||||
try:
|
||||
if context and context.strip():
|
||||
# Subsequent calls with prior context: continue next part only
|
||||
full_prompt += (
|
||||
"\n\nINSTRUCTIONS (COMPLETENESS):\n"
|
||||
"- Continue from where the previous content ended. Do NOT repeat earlier content.\n"
|
||||
"- If more parts are still needed after this response, append a final line exactly: 'CONTINUATION: true'.\n"
|
||||
"- If the content is now complete, append a final line exactly: 'CONTINUATION: false'.\n"
|
||||
)
|
||||
else:
|
||||
# First call (no prior context): deliver full content or first part
|
||||
full_prompt += (
|
||||
"\n\nINSTRUCTIONS (COMPLETENESS):\n"
|
||||
"- Deliver the complete content. Do NOT truncate.\n"
|
||||
"- If platform limits force truncation, provide the first complete section(s) only and append a final line exactly: 'CONTINUATION: true'.\n"
|
||||
"- If the entire content is fully included, append a final line exactly: 'CONTINUATION: false'.\n"
|
||||
)
|
||||
except Exception:
|
||||
# Non-fatal if any issue building guidance
|
||||
pass
|
||||
logger.debug(f"AI call: {len(full_prompt)} chars (prompt: {len(prompt)}, context: {len(context)})")
|
||||
|
||||
# Use AiObjects to select the best model and make the call
|
||||
try:
|
||||
# Create AI call request
|
||||
# Helper to detect and strip continuation flag
|
||||
import re
|
||||
def _split_content_and_flag(text: str) -> (str, bool):
|
||||
if not text:
|
||||
return "", False
|
||||
lines = text.strip().splitlines()
|
||||
cont = False
|
||||
# Scan last 3 lines for flag to be robust
|
||||
for i in range(1, min(4, len(lines))+1):
|
||||
m = re.match(r"^\s*CONTINUATION:\s*(true|false)\s*$", lines[-i].strip(), re.IGNORECASE)
|
||||
if m:
|
||||
cont = m.group(1).lower() == 'true'
|
||||
# remove the matched flag line
|
||||
del lines[-i]
|
||||
break
|
||||
return "\n".join(lines).strip(), cont
|
||||
|
||||
# First call
|
||||
request = AiCallRequest(
|
||||
prompt=full_prompt,
|
||||
context="", # Context is already included in the prompt
|
||||
context="",
|
||||
options=options
|
||||
)
|
||||
|
||||
# Make the call using AiObjects (which handles model selection)
|
||||
response = await self.aiObjects.call(request)
|
||||
try:
|
||||
logger.debug(f"AI model selected (text): {getattr(response, 'modelName', 'unknown')}")
|
||||
except Exception:
|
||||
pass
|
||||
logger.debug(f"=== AI RESPONSE ===")
|
||||
logger.debug(f"Response length: {len(response.content)} chars")
|
||||
logger.debug(f"Response preview: {response.content[:200]}...")
|
||||
return response.content
|
||||
content_first = response.content or ""
|
||||
merged_content, needs_more = _split_content_and_flag(content_first)
|
||||
|
||||
# Iteratively request next parts if flagged
|
||||
max_parts = 10
|
||||
part_index = 1
|
||||
while needs_more and part_index < max_parts:
|
||||
part_index += 1
|
||||
# Build subsequent prompt with explicit continuation instructions
|
||||
subsequent_prompt = (
|
||||
prompt
|
||||
+ "\n\nINSTRUCTIONS (CONTINUE NEXT PART ONLY):\n"
|
||||
"- Continue from where the previous content ended.\n"
|
||||
"- Do NOT repeat earlier content.\n"
|
||||
"- Append a final line exactly: 'CONTINUATION: true' if more parts are needed, otherwise 'CONTINUATION: false'.\n"
|
||||
)
|
||||
next_request = AiCallRequest(
|
||||
prompt=subsequent_prompt,
|
||||
context=merged_content,
|
||||
options=options
|
||||
)
|
||||
next_response = await self.aiObjects.call(next_request)
|
||||
part_text = next_response.content or ""
|
||||
part_clean, needs_more = _split_content_and_flag(part_text)
|
||||
if part_clean:
|
||||
# Separate parts clearly
|
||||
merged_content = (merged_content + "\n\n" + part_clean).strip()
|
||||
else:
|
||||
# Avoid infinite loops on empty parts
|
||||
break
|
||||
|
||||
logger.debug(f"=== AI RESPONSE (MERGED) ===")
|
||||
logger.debug(f"Response length: {len(merged_content)} chars")
|
||||
logger.debug(f"Response preview: {merged_content[:200]}...")
|
||||
return merged_content
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"AI call failed: {e}")
|
||||
|
|
@ -1080,6 +1174,51 @@ class AiService:
|
|||
|
||||
return full_prompt
|
||||
|
||||
def _writeTraceLog(self, contextText: str, data: Any) -> None:
|
||||
"""Write raw data to the central trace log file without truncation."""
|
||||
try:
|
||||
import os
|
||||
import json
|
||||
from datetime import datetime, UTC
|
||||
# Only write if logger is in debug mode
|
||||
if logger.level > logging.DEBUG:
|
||||
return
|
||||
# Get log directory from configuration via service center if possible
|
||||
logDir = None
|
||||
try:
|
||||
if self.serviceCenter and hasattr(self.serviceCenter, 'utils'):
|
||||
logDir = self.serviceCenter.utils.configGet("APP_LOGGING_LOG_DIR", "./")
|
||||
except Exception:
|
||||
pass
|
||||
if not logDir:
|
||||
logDir = "./"
|
||||
if not os.path.isabs(logDir):
|
||||
# Make it relative to gateway directory
|
||||
gatewayDir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
logDir = os.path.join(gatewayDir, logDir)
|
||||
os.makedirs(logDir, exist_ok=True)
|
||||
traceFile = os.path.join(logDir, "log_trace.log")
|
||||
timestamp = datetime.now(UTC).strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
|
||||
traceEntry = f"[{timestamp}] {contextText}\n" + ("=" * 80) + "\n"
|
||||
if data is None:
|
||||
traceEntry += "No data provided\n"
|
||||
else:
|
||||
# Prefer exact text; if dict/list, pretty print JSON
|
||||
try:
|
||||
if isinstance(data, (dict, list)):
|
||||
traceEntry += f"JSON Data:\n{json.dumps(data, indent=2, ensure_ascii=False)}\n"
|
||||
else:
|
||||
text = str(data)
|
||||
traceEntry += f"Text Data:\n{text}\n"
|
||||
except Exception:
|
||||
traceEntry += f"Data (fallback): {str(data)}\n"
|
||||
traceEntry += ("=" * 80) + "\n\n"
|
||||
with open(traceFile, "a", encoding="utf-8") as f:
|
||||
f.write(traceEntry)
|
||||
except Exception:
|
||||
# Swallow to avoid recursive logging issues
|
||||
pass
|
||||
|
||||
def _exceedsTokenLimit(self, text: str, model: ModelCapabilities, safety_margin: float) -> bool:
|
||||
"""
|
||||
Check if text exceeds model token limit with safety margin.
|
||||
|
|
@ -1169,4 +1308,88 @@ class AiService:
|
|||
target_length = int(len(text) * reduction_factor)
|
||||
return text[:target_length] + "... [reduced]"
|
||||
|
||||
async def _callAiWithDocumentGeneration(
|
||||
self,
|
||||
prompt: str,
|
||||
documents: Optional[List[ChatDocument]],
|
||||
options: AiCallOptions,
|
||||
outputFormat: str,
|
||||
title: Optional[str]
|
||||
) -> Dict[str, Any]:
|
||||
"""
|
||||
Handle AI calls with document generation in specific output format.
|
||||
|
||||
Args:
|
||||
prompt: The main prompt for the AI call
|
||||
documents: Optional list of documents to process
|
||||
options: AI call configuration options
|
||||
outputFormat: Target output format (html, pdf, docx, txt, md, json, csv, xlsx)
|
||||
title: Optional title for generated documents
|
||||
|
||||
Returns:
|
||||
Dict with generated documents and metadata
|
||||
"""
|
||||
try:
|
||||
# Get format-specific extraction prompt from generation service
|
||||
from modules.services.serviceGeneration.mainServiceGeneration import GenerationService
|
||||
generation_service = GenerationService(self.serviceCenter)
|
||||
|
||||
# Use default title if not provided
|
||||
if not title:
|
||||
title = "AI Generated Document"
|
||||
|
||||
# Get format-specific extraction prompt
|
||||
extraction_prompt = generation_service.getExtractionPrompt(
|
||||
output_format=outputFormat,
|
||||
user_prompt=prompt,
|
||||
title=title
|
||||
)
|
||||
|
||||
# Process documents with format-specific prompt
|
||||
ai_response = await self._callAiText(extraction_prompt, documents, options)
|
||||
|
||||
if not ai_response or ai_response.strip() == "":
|
||||
raise Exception("AI content generation failed")
|
||||
|
||||
# Render the content to the specified format
|
||||
rendered_content, mime_type = await generation_service.renderReport(
|
||||
extracted_content=ai_response,
|
||||
output_format=outputFormat,
|
||||
title=title
|
||||
)
|
||||
|
||||
# Generate meaningful filename
|
||||
from datetime import datetime, UTC
|
||||
timestamp = datetime.now(UTC).strftime("%Y%m%d-%H%M%S")
|
||||
filename = f"{title.replace(' ', '_')}_{timestamp}.{outputFormat}"
|
||||
|
||||
# Return structured result with document information
|
||||
return {
|
||||
"success": True,
|
||||
"content": ai_response, # Raw AI response
|
||||
"rendered_content": rendered_content, # Formatted content
|
||||
"mime_type": mime_type,
|
||||
"filename": filename,
|
||||
"format": outputFormat,
|
||||
"title": title,
|
||||
"documents": [{
|
||||
"documentName": filename,
|
||||
"documentData": rendered_content,
|
||||
"mimeType": mime_type
|
||||
}]
|
||||
}
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error in document generation: {str(e)}")
|
||||
return {
|
||||
"success": False,
|
||||
"error": str(e),
|
||||
"content": "",
|
||||
"rendered_content": "",
|
||||
"mime_type": "text/plain",
|
||||
"filename": f"error_{outputFormat}",
|
||||
"format": outputFormat,
|
||||
"title": title or "Error",
|
||||
"documents": []
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,27 +30,22 @@ class MethodAi(MethodBase):
|
|||
@action
|
||||
async def process(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
AI data delivery and analysis - returns plain text only, NO document generation
|
||||
|
||||
USE FOR: Data delivery, analysis, research, Q&A, summarization, translation
|
||||
DO NOT USE FOR: Code generation, creating formatted documents (Word, PDF, Excel), document generation, file creation
|
||||
|
||||
INPUT REQUIREMENTS: Requires aiPrompt parameter (what to deliver)
|
||||
OUTPUT FORMAT: Plain text only (.txt, .json, .md, .csv, .xml) - NO binary files
|
||||
DEPENDENCIES: None - can work standalone
|
||||
WORKFLOW POSITION: Use for data delivery, analysis, research, or text processing tasks
|
||||
GENERAL:
|
||||
- Purpose: AI-based analysis and content generation with optional document context.
|
||||
- Input requirements: aiPrompt (required); optional documentList, resultType, processingMode, includeMetadata, operationType, priority, maxCost, maxProcessingTime, requiredTags.
|
||||
- Output format: Single or multiple documents in requested format.
|
||||
|
||||
Parameters:
|
||||
aiPrompt (str): The AI prompt for what we want to have delivered
|
||||
documentList (list, optional): List of document references to include in context
|
||||
resultType (str, optional): Output format type - use 'txt', 'json', 'md', 'csv', or 'xml' (defaults to 'txt')
|
||||
processingMode (str, optional): Processing mode - use 'basic', 'advanced', or 'detailed' (defaults to 'basic')
|
||||
includeMetadata (bool, optional): Whether to include metadata (default: True)
|
||||
operationType (str, optional): Operation type - use 'general', 'generate_plan', 'analyse_content', 'generate_content', 'web_research', 'image_analysis', or 'image_generation'
|
||||
priority (str, optional): Priority level - use 'speed', 'quality', 'cost', or 'balanced'
|
||||
maxCost (float, optional): Maximum cost budget for the AI call
|
||||
maxProcessingTime (int, optional): Maximum processing time in seconds
|
||||
requiredTags (list, optional): Required model tags - use 'text', 'chat', 'reasoning', 'analysis', 'image', 'vision', 'web', 'search', etc.
|
||||
- aiPrompt (str, required): Instruction for the AI.
|
||||
- documentList (list, optional): Document reference(s) for context.
|
||||
- resultType (str, optional): Output extension (txt, json, md, csv, xml, html, pdf, docx, xlsx, png). Default: txt.
|
||||
- processingMode (str, optional): basic | advanced | detailed. Default: basic.
|
||||
- includeMetadata (bool, optional): Include metadata when available. Default: True.
|
||||
- operationType (str, optional): general | generate_plan | analyse_content | generate_content | web_research | image_analysis | image_generation. Default: general.
|
||||
- priority (str, optional): speed | quality | cost | balanced. Default: balanced.
|
||||
- maxCost (float, optional): Cost limit.
|
||||
- maxProcessingTime (int, optional): Time limit in seconds.
|
||||
- requiredTags (list, optional): Capability tags (e.g., text, chat, reasoning, analysis, image, vision, web, search).
|
||||
"""
|
||||
try:
|
||||
# Debug logging to see what parameters are received
|
||||
|
|
@ -79,24 +74,11 @@ class MethodAi(MethodBase):
|
|||
error="AI prompt is required"
|
||||
)
|
||||
|
||||
# Validate and determine output format
|
||||
valid_result_types = ["txt", "json", "md", "csv", "xml"]
|
||||
if resultType not in valid_result_types:
|
||||
return ActionResult.isFailure(
|
||||
error=f"Invalid resultType '{resultType}'. Must be one of: {', '.join(valid_result_types)}"
|
||||
)
|
||||
|
||||
# Map resultType to file extension and MIME type
|
||||
format_mapping = {
|
||||
"txt": (".txt", "text/plain"),
|
||||
"json": (".json", "application/json"),
|
||||
"md": (".md", "text/markdown"),
|
||||
"csv": (".csv", "text/csv"),
|
||||
"xml": (".xml", "application/xml")
|
||||
}
|
||||
|
||||
output_extension, output_mime_type = format_mapping[resultType]
|
||||
logger.info(f"Using result type: {resultType} -> {output_extension} ({output_mime_type})")
|
||||
# Determine output extension and default MIME type without duplicating service logic
|
||||
normalized_result_type = (str(resultType).strip().lstrip('.').lower() or "txt")
|
||||
output_extension = f".{normalized_result_type}"
|
||||
output_mime_type = "application/octet-stream" # Prefer service-provided mimeType when available
|
||||
logger.info(f"Using result type: {resultType} -> {output_extension}")
|
||||
|
||||
# Get ChatDocuments for AI service - let AI service handle all document processing
|
||||
chatDocuments = []
|
||||
|
|
@ -117,57 +99,11 @@ class MethodAi(MethodBase):
|
|||
# Note: customInstructions parameter was removed as it's not defined in the method signature
|
||||
|
||||
# Add format guidance to prompt
|
||||
if resultType != "txt":
|
||||
enhanced_prompt += f"\n\nPlease deliver the result in {resultType.upper()} format. Ensure the output follows the proper {resultType.upper()} syntax and structure."
|
||||
|
||||
# Call AI service - it will handle all document processing internally
|
||||
logger.info(f"Executing AI call with mode: {processingMode}, prompt length: {len(enhanced_prompt)}")
|
||||
if chatDocuments:
|
||||
logger.info(f"Including {len(chatDocuments)} documents for AI processing")
|
||||
|
||||
# Add format-specific instruction for structured response with continuation support
|
||||
if resultType == "json":
|
||||
format_instruction = """
|
||||
|
||||
Please return your response in the following JSON format:
|
||||
{{
|
||||
"documents": [
|
||||
{{
|
||||
"data": "your actual content here",
|
||||
"mimeType": "application/json",
|
||||
"comment": "optional comment about content"
|
||||
}}
|
||||
],
|
||||
"continue": false
|
||||
}}
|
||||
|
||||
The data field should contain valid JSON content.
|
||||
For large datasets, set "continue": true to indicate more data is coming, and we'll ask for the next chunk.
|
||||
"""
|
||||
else:
|
||||
format_instruction = f"""
|
||||
|
||||
Please return your response in the following JSON format:
|
||||
{{
|
||||
"documents": [
|
||||
{{
|
||||
"data": "your actual content here in {resultType.upper()} format",
|
||||
"mimeType": "{output_mime_type}",
|
||||
"comment": "optional comment about content"
|
||||
}}
|
||||
],
|
||||
"continue": false
|
||||
}}
|
||||
|
||||
The data field should contain the content in {resultType.upper()} format.
|
||||
For large datasets, set "continue": true to indicate more data is coming, and we'll ask for the next chunk.
|
||||
"""
|
||||
|
||||
call_prompt = enhanced_prompt + format_instruction
|
||||
if normalized_result_type != "txt":
|
||||
enhanced_prompt += f"\n\nPlease deliver the result in {normalized_result_type.upper()} format. Ensure the output follows the proper {normalized_result_type.upper()} syntax and structure."
|
||||
|
||||
# Build options and delegate document handling to AI/Extraction/Generation services
|
||||
output_format = output_extension.replace('.', '') or 'txt'
|
||||
|
||||
# Build options using new AiCallOptions format
|
||||
options = AiCallOptions(
|
||||
operationType=operationType,
|
||||
priority=priority,
|
||||
|
|
@ -181,195 +117,40 @@ For large datasets, set "continue": true to indicate more data is coming, and we
|
|||
requiredTags=requiredTags
|
||||
)
|
||||
|
||||
# Use the new AI service that handles document processing internally
|
||||
supported_generation_formats = {"html", "pdf", "docx", "txt", "md", "json", "csv", "xlsx"}
|
||||
output_format_arg = output_format if output_format in supported_generation_formats else None
|
||||
|
||||
result = await self.services.ai.callAi(
|
||||
prompt=call_prompt,
|
||||
prompt=enhanced_prompt,
|
||||
documents=chatDocuments if chatDocuments else None,
|
||||
options=options
|
||||
options=options,
|
||||
outputFormat=output_format_arg
|
||||
)
|
||||
|
||||
# DEBUG dump: write raw AI result to @testing_extraction/ TODO Remove
|
||||
try:
|
||||
import os
|
||||
from datetime import datetime
|
||||
debug_root = "./test-chat/extraction"
|
||||
ts = datetime.now(UTC).strftime("%Y%m%d-%H%M%S")
|
||||
debug_dir = os.path.join(debug_root, f"method_ai_{ts}")
|
||||
os.makedirs(debug_dir, exist_ok=True)
|
||||
with open(os.path.join(debug_dir, "raw_result.txt"), "w", encoding="utf-8") as f:
|
||||
f.write(str(result) if result is not None else "")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Parse JSON response from AI with streaming support
|
||||
import json
|
||||
import re
|
||||
from modules.datamodels.datamodelChat import ActionDocument
|
||||
|
||||
if isinstance(result, dict) and isinstance(result.get("documents"), list):
|
||||
action_documents = []
|
||||
all_data_chunks = [] # Store all data chunks for merging
|
||||
for d in result["documents"]:
|
||||
action_documents.append(ActionDocument(
|
||||
documentName=d.get("documentName"),
|
||||
documentData=d.get("documentData"),
|
||||
mimeType=d.get("mimeType") or output_mime_type
|
||||
))
|
||||
return ActionResult.isSuccess(documents=action_documents)
|
||||
|
||||
try:
|
||||
# Process streaming response
|
||||
chunk_number = 0
|
||||
continue_processing = True
|
||||
current_result = result
|
||||
|
||||
while continue_processing:
|
||||
chunk_number += 1
|
||||
logger.info(f"Processing AI response chunk {chunk_number}")
|
||||
|
||||
# Clean up the response (remove markdown code blocks if present)
|
||||
cleaned_result = (current_result or "").strip()
|
||||
# Remove code fences anywhere in the text
|
||||
cleaned_result = re.sub(r"```json|```", "", cleaned_result).strip()
|
||||
|
||||
# Try direct parse first
|
||||
try:
|
||||
parsed_response = json.loads(cleaned_result)
|
||||
except Exception:
|
||||
# Heuristic extraction: find the largest {...} block
|
||||
start = cleaned_result.find("{")
|
||||
end = cleaned_result.rfind("}")
|
||||
if start != -1 and end != -1 and end > start:
|
||||
candidate = cleaned_result[start:end+1]
|
||||
# Remove trailing commas before closing braces/brackets
|
||||
candidate = re.sub(r",\s*([}\]])", r"\1", candidate)
|
||||
parsed_response = json.loads(candidate)
|
||||
else:
|
||||
# Try extracting a JSON code block via regex as last resort
|
||||
match = re.search(r"\{[\s\S]*\}", cleaned_result)
|
||||
if match:
|
||||
candidate = re.sub(r",\s*([}\]])", r"\1", match.group(0))
|
||||
parsed_response = json.loads(candidate)
|
||||
else:
|
||||
raise
|
||||
|
||||
# Check if we should continue
|
||||
continue_processing = parsed_response.get("continue", False)
|
||||
|
||||
# Extract documents from response
|
||||
if isinstance(parsed_response, dict) and "documents" in parsed_response:
|
||||
for doc in parsed_response["documents"]:
|
||||
if isinstance(doc, dict):
|
||||
all_data_chunks.append(doc.get("data", ""))
|
||||
|
||||
# If we need to continue, ask for the next chunk
|
||||
if continue_processing:
|
||||
logger.info(f"AI indicated more data coming, requesting chunk {chunk_number + 1}")
|
||||
|
||||
# Build context from previous chunks
|
||||
previous_data_summary = ""
|
||||
if all_data_chunks:
|
||||
# Show a summary of what was already provided
|
||||
total_chars = sum(len(str(chunk)) for chunk in all_data_chunks)
|
||||
previous_data_summary = f"""
|
||||
CONTEXT: You have already provided {len(all_data_chunks)} chunks of data ({total_chars} characters total).
|
||||
The last chunk contained: {str(all_data_chunks[-1])[:200]}{'...' if len(str(all_data_chunks[-1])) > 200 else ''}
|
||||
|
||||
Please continue with the next chunk, ensuring no duplication of previous data.
|
||||
"""
|
||||
|
||||
continuation_prompt = f"""
|
||||
{previous_data_summary}
|
||||
|
||||
Please continue with the next chunk of data. Return the same JSON format:
|
||||
{{
|
||||
"documents": [
|
||||
{{
|
||||
"data": "next chunk of data here",
|
||||
"mimeType": "{output_mime_type}",
|
||||
"comment": "chunk {chunk_number + 1}"
|
||||
}}
|
||||
],
|
||||
"continue": false
|
||||
}}
|
||||
|
||||
Set "continue": false when this is the final chunk.
|
||||
"""
|
||||
|
||||
# Make another AI call for the next chunk
|
||||
current_result = await self.services.ai.callAi(
|
||||
prompt=continuation_prompt,
|
||||
options=options
|
||||
)
|
||||
|
||||
if not current_result:
|
||||
logger.warning("No response for continuation chunk, stopping")
|
||||
break
|
||||
|
||||
# Merge all data chunks into final documents using intelligent merging
|
||||
if all_data_chunks:
|
||||
merged_data = self._mergeDataChunks(all_data_chunks, resultType, output_mime_type)
|
||||
|
||||
# Create final merged document
|
||||
extension = output_extension.lstrip('.')
|
||||
meaningful_name = self._generateMeaningfulFileName(
|
||||
base_name="ai",
|
||||
extension=extension,
|
||||
action_name="result"
|
||||
)
|
||||
|
||||
action_documents.append(ActionDocument(
|
||||
documentName=meaningful_name,
|
||||
documentData=merged_data,
|
||||
mimeType=output_mime_type
|
||||
))
|
||||
else:
|
||||
# Fallback: create single document from raw result
|
||||
extension = output_extension.lstrip('.')
|
||||
meaningful_name = self._generateMeaningfulFileName(
|
||||
base_name="ai",
|
||||
extension=extension,
|
||||
action_name="result"
|
||||
)
|
||||
action_documents.append(ActionDocument(
|
||||
action_document = ActionDocument(
|
||||
documentName=meaningful_name,
|
||||
documentData=result,
|
||||
mimeType=output_mime_type
|
||||
))
|
||||
|
||||
except Exception as e:
|
||||
# Fallback: create single document with raw result
|
||||
logger.warning(f"Failed to parse AI response as JSON: {str(e)}")
|
||||
extension = output_extension.lstrip('.') # Remove leading dot
|
||||
meaningful_name = self._generateMeaningfulFileName(
|
||||
base_name="ai",
|
||||
extension=extension,
|
||||
action_name="result"
|
||||
)
|
||||
action_documents.append(ActionDocument(
|
||||
documentName=meaningful_name,
|
||||
documentData=result,
|
||||
mimeType=output_mime_type
|
||||
))
|
||||
|
||||
# DEBUG dump: write parsed documents to files in the same debug folder
|
||||
try:
|
||||
# Reuse the same debug_dir if created above; otherwise create a new one
|
||||
import os
|
||||
from datetime import datetime
|
||||
debug_root = "./test-chat/extraction"
|
||||
ts = datetime.now(UTC).strftime("%Y%m%d-%H%M%S")
|
||||
debug_dir = os.path.join(debug_root, f"method_ai_{ts}")
|
||||
os.makedirs(debug_dir, exist_ok=True)
|
||||
# Write a summary and individual documents
|
||||
summary_lines: List[str] = [f"documents: {len(action_documents)}"]
|
||||
for i, doc in enumerate(action_documents, 1):
|
||||
summary_lines.append(f"doc[{i}]: name={doc.documentName}, mimeType={doc.mimeType}")
|
||||
safe_name = doc.documentName or f"doc_{i:03d}.txt"
|
||||
fpath = os.path.join(debug_dir, safe_name)
|
||||
with open(fpath, "w", encoding="utf-8") as f:
|
||||
f.write(str(doc.documentData) if doc.documentData is not None else "")
|
||||
with open(os.path.join(debug_dir, "summary.txt"), "w", encoding="utf-8") as f:
|
||||
f.write("\n".join(summary_lines))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Return result in the standard ActionResult format with parsed documents
|
||||
return ActionResult.isSuccess(
|
||||
documents=action_documents
|
||||
)
|
||||
return ActionResult.isSuccess(documents=[action_document])
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error in AI processing: {str(e)}")
|
||||
|
|
@ -380,28 +161,23 @@ Set "continue": false when this is the final chunk.
|
|||
@action
|
||||
async def webResearch(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Comprehensive web research and information gathering from the internet
|
||||
|
||||
USE FOR: Finding current information, researching topics, gathering external data, fact-checking, market research
|
||||
DO NOT USE FOR: Processing local documents, creating formatted reports, email operations
|
||||
|
||||
INPUT REQUIREMENTS: Requires user_prompt parameter (the research question or topic to investigate)
|
||||
OUTPUT FORMAT: JSON with research results, sources, and analysis
|
||||
DEPENDENCIES: Requires internet connection and web search capabilities
|
||||
WORKFLOW POSITION: Use when external information is needed, before document processing
|
||||
GENERAL:
|
||||
- Purpose: Web research and information gathering with basic analysis and sources.
|
||||
- Input requirements: user_prompt (required); optional urls, max_results, max_pages, search_depth, extract_depth, pages_search_depth, country, time_range, topic, language.
|
||||
- Output format: JSON with results and sources.
|
||||
|
||||
Parameters:
|
||||
user_prompt (str): The research question or topic to investigate - describe what information you want to find
|
||||
urls (list, optional): Specific URLs to crawl instead of searching
|
||||
max_results (int, optional): Maximum search results (default: 10)
|
||||
max_pages (int, optional): Maximum pages to crawl (default: 10)
|
||||
search_depth (str, optional): Tavily search depth - MUST be 'basic' or 'advanced' (default: 'basic')
|
||||
extract_depth (str, optional): Tavily extract depth - MUST be 'basic' or 'advanced' (default: 'advanced')
|
||||
pages_search_depth (int, optional): How deep to crawl - 1=main pages only, 2=main+sub-pages, 3=main+sub+sub-sub, etc. (default: 2)
|
||||
country (str, optional): Country code for search bias (e.g., 'CH', 'US', 'DE')
|
||||
time_range (str, optional): Time range for search - Use 'd' (day), 'w' (week), 'm' (month), 'y' (year) if needed, otherwise OMIT this parameter entirely
|
||||
topic (str, optional): Search topic - Use 'general', 'news', or 'academic' if needed, otherwise OMIT this parameter entirely
|
||||
language (str, optional): Language code (e.g., 'de', 'en', 'fr')
|
||||
- user_prompt (str, required): Research question or topic.
|
||||
- urls (list, optional): Specific URLs to crawl.
|
||||
- max_results (int, optional): Max search results. Default: 10.
|
||||
- max_pages (int, optional): Max pages to crawl per site. Default: 10.
|
||||
- search_depth (str, optional): basic | advanced. Default: basic.
|
||||
- extract_depth (str, optional): basic | advanced. Default: advanced.
|
||||
- pages_search_depth (int, optional): Crawl depth level. Default: 2.
|
||||
- country (str, optional): Country code for bias.
|
||||
- time_range (str, optional): d | w | m | y.
|
||||
- topic (str, optional): general | news | academic.
|
||||
- language (str, optional): Language code (e.g., de, en, fr).
|
||||
"""
|
||||
try:
|
||||
user_prompt = parameters.get("user_prompt")
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@ class MethodBase:
|
|||
# Extract parameter name and type
|
||||
if '(' in paramPart:
|
||||
paramName = paramPart.split('(')[0].strip()
|
||||
# Normalize bullet-prefixed parameter names like "- aiPrompt" or "* aiPrompt"
|
||||
if paramName.startswith('-') or paramName.startswith('*'):
|
||||
paramName = paramName[1:].strip()
|
||||
paramType = paramPart[paramPart.find('(')+1:paramPart.find(')')].strip()
|
||||
descriptions[paramName] = descPart
|
||||
types[paramName] = paramType
|
||||
|
|
|
|||
|
|
@ -31,25 +31,20 @@ class MethodDocument(MethodBase):
|
|||
@action
|
||||
async def extract(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Extract and analyze content from existing documents using AI
|
||||
|
||||
USE FOR: Analyzing documents, extracting specific information, summarizing content, finding patterns, data extraction
|
||||
DO NOT USE FOR: Creating new documents, generating reports, web research, email operations
|
||||
|
||||
INPUT REQUIREMENTS: Requires documentList (existing documents) and prompt (what to extract)
|
||||
OUTPUT FORMAT: Plain text extracted content (.txt files)
|
||||
DEPENDENCIES: Requires existing documents in documentList parameter
|
||||
WORKFLOW POSITION: Use after documents are available, before generating reports
|
||||
GENERAL:
|
||||
- Purpose: Extract and analyze content from existing documents using AI.
|
||||
- Input requirements: documentList (required); prompt (required).
|
||||
- Output format: Plain text per source document (.txt by default).
|
||||
|
||||
Parameters:
|
||||
documentList (list): Document list reference(s) - List of document references to extract content from
|
||||
prompt (str): AI prompt for extraction - Specific prompt describing what content to extract and how to process it
|
||||
operationType (str, optional): Type of operation - Use 'extract_content', 'analyze_document', 'summarize_content', etc. (default: 'extract_content')
|
||||
processDocumentsIndividually (bool, optional): Process each document separately - Set to True for individual processing, False for batch processing (default: True)
|
||||
chunkAllowed (bool, optional): Allow content chunking - Set to True to allow AI service to chunk large content, False to process as-is (default: True)
|
||||
mergeStrategy (dict, optional): Strategy for merging results - Specify how to merge chunked content: groupBy, orderBy, mergeType (default: concatenate)
|
||||
expectedDocumentFormats (list, optional): Expected output formats - List of format specifications with extension, mimeType, description
|
||||
includeMetadata (bool, optional): Include document metadata - Set to True to include file metadata in results (default: True)
|
||||
- documentList (list, required): Document reference(s) to extract from.
|
||||
- prompt (str, required): Instruction describing what to extract.
|
||||
- operationType (str, optional): extract_content | analyze_document | summarize_content. Default: extract_content.
|
||||
- processDocumentsIndividually (bool, optional): Process each document separately. Default: True.
|
||||
- chunkAllowed (bool, optional): Allow chunking for large inputs. Default: True.
|
||||
- mergeStrategy (dict, optional): Merge strategy for chunked content.
|
||||
- expectedDocumentFormats (list, optional): Desired output format specs.
|
||||
- includeMetadata (bool, optional): Include file metadata. Default: True.
|
||||
"""
|
||||
try:
|
||||
documentList = parameters.get("documentList")
|
||||
|
|
@ -83,16 +78,14 @@ class MethodDocument(MethodBase):
|
|||
error="No documents found for the provided reference"
|
||||
)
|
||||
|
||||
# Use new extraction service with ChatDocument objects
|
||||
# Use enhanced AI service with integrated extraction
|
||||
try:
|
||||
# Build extraction options directly from AI planner parameters
|
||||
extraction_options = {
|
||||
"prompt": prompt,
|
||||
"operationType": operationType,
|
||||
"processDocumentsIndividually": processDocumentsIndividually,
|
||||
"chunkAllowed": chunkAllowed,
|
||||
"mergeStrategy": mergeStrategy
|
||||
}
|
||||
# Build AI call options
|
||||
ai_options = AiCallOptions(
|
||||
operationType=operationType,
|
||||
processDocumentsIndividually=processDocumentsIndividually,
|
||||
compressContext=not chunkAllowed
|
||||
)
|
||||
|
||||
# Add format instructions to prompt if expected formats are provided
|
||||
enhanced_prompt = prompt
|
||||
|
|
@ -108,54 +101,30 @@ class MethodDocument(MethodBase):
|
|||
enhanced_prompt += f"\n\nPlease format the output as: {', '.join([fmt.get('extension', '.txt') for fmt in expectedDocumentFormats])}"
|
||||
enhanced_prompt += f"\nExpected formats:\n" + "\n".join(format_instructions)
|
||||
|
||||
extraction_options["expectedDocumentFormats"] = expectedDocumentFormats
|
||||
|
||||
extraction_options["prompt"] = enhanced_prompt
|
||||
|
||||
if not includeMetadata:
|
||||
extraction_options["includeMetadata"] = False
|
||||
|
||||
# Use new extraction service API
|
||||
all_extracted_content = self.services.extraction.extractContent(
|
||||
# Use enhanced AI service for extraction
|
||||
ai_response = await self.services.ai.callAi(
|
||||
prompt=enhanced_prompt,
|
||||
documents=chatDocuments,
|
||||
options=extraction_options
|
||||
options=ai_options
|
||||
)
|
||||
|
||||
logger.info(f"Extraction completed: {len(all_extracted_content)} documents processed")
|
||||
logger.info(f"AI extraction completed: {len(ai_response)} characters")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Extraction failed: {str(e)}")
|
||||
all_extracted_content = []
|
||||
logger.error(f"AI extraction failed: {str(e)}")
|
||||
ai_response = ""
|
||||
|
||||
if not all_extracted_content:
|
||||
if not ai_response or ai_response.strip() == "":
|
||||
return ActionResult.isFailure(
|
||||
error="No content could be extracted from any documents"
|
||||
)
|
||||
|
||||
# Process each document individually with its own format conversion
|
||||
# Process each document individually with extracted content
|
||||
action_documents = []
|
||||
|
||||
for i, chatDocument in enumerate(chatDocuments):
|
||||
# Extract text content from this document using new extracted content structure
|
||||
text_content = ""
|
||||
try:
|
||||
ec = all_extracted_content[i] if i < len(all_extracted_content) else None
|
||||
if ec and hasattr(ec, 'parts'):
|
||||
text_parts = []
|
||||
for part in ec.parts:
|
||||
try:
|
||||
if part.typeGroup in ("text", "table", "structure") and part.data:
|
||||
text_parts.append(part.data)
|
||||
except Exception:
|
||||
continue
|
||||
text_content = "\n".join(text_parts)
|
||||
else:
|
||||
text_content = ""
|
||||
except Exception:
|
||||
text_content = ""
|
||||
|
||||
# Use the extracted content directly - format conversion is handled by extraction service
|
||||
final_content = text_content
|
||||
# Use the AI response directly - it already contains processed content
|
||||
final_content = ai_response
|
||||
final_mime_type = "text/plain"
|
||||
final_extension = ".txt"
|
||||
|
||||
|
|
@ -193,26 +162,21 @@ class MethodDocument(MethodBase):
|
|||
@action
|
||||
async def generate(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Generate formatted documents and reports from source documents - creates actual files (Word, PDF, Excel, etc.)
|
||||
|
||||
USE FOR: Creating formatted documents, reports, presentations, spreadsheets, structured outputs, professional documents
|
||||
DO NOT USE FOR: Simple text analysis, Q&A, web research, email operations
|
||||
|
||||
INPUT REQUIREMENTS: Requires documentList (source documents) and prompt (what kind of report to generate)
|
||||
OUTPUT FORMAT: Formatted documents (.html, .pdf, .docx, .txt, .md, .json, .csv, .xlsx)
|
||||
DEPENDENCIES: Requires existing documents in documentList parameter
|
||||
WORKFLOW POSITION: Use after document analysis, as final output generation step
|
||||
GENERAL:
|
||||
- Purpose: Generate formatted documents and reports from source documents.
|
||||
- Input requirements: documentList (required); prompt (required); optional title and outputFormat.
|
||||
- Any output format, e.g.: html | pdf | docx | txt | md | json | csv | xlsx
|
||||
|
||||
Parameters:
|
||||
documentList (list): Document list reference(s) - List of document references to include in report
|
||||
prompt (str): AI prompt for report generation - Specific prompt describing what kind of report to generate
|
||||
title (str): Report title - Title for the generated report (default: "Summary Report")
|
||||
outputFormat (str): Output format extension - Specify the desired output format: 'html', 'pdf', 'docx', 'txt', 'md', 'json', 'csv', 'xlsx' (default: 'html')
|
||||
operationType (str, optional): Type of operation - Use 'generate_report', 'analyze_documents', etc. (default: 'generate_report')
|
||||
processDocumentsIndividually (bool, optional): Process each document separately - Set to True for individual processing (default: True)
|
||||
chunkAllowed (bool, optional): Allow content chunking - Set to True to allow AI service to chunk large content (default: True)
|
||||
mergeStrategy (dict, optional): Strategy for merging results - Specify how to merge content for report generation (default: concatenate)
|
||||
includeMetadata (bool, optional): Include document metadata - Set to True to include file metadata in results (default: True)
|
||||
- documentList (list, required): Document reference(s) to include as context.
|
||||
- prompt (str, required): Instruction describing the desired document/report.
|
||||
- title (str, optional): Title for the generated document. Default: "Summary Report".
|
||||
- outputFormat (str, optional): html | pdf | docx | txt | md | json | csv | xlsx. Default: html.
|
||||
- operationType (str, optional): generate_report | analyze_documents. Default: generate_report.
|
||||
- processDocumentsIndividually (bool, optional): Process per document. Default: True.
|
||||
- chunkAllowed (bool, optional): Allow chunking for large inputs. Default: True.
|
||||
- mergeStrategy (dict, optional): Merging rules for multi-part generation.
|
||||
- includeMetadata (bool, optional): Include file metadata. Default: True.
|
||||
"""
|
||||
try:
|
||||
documentList = parameters.get("documentList")
|
||||
|
|
@ -249,155 +213,54 @@ class MethodDocument(MethodBase):
|
|||
error="No documents found for the provided reference"
|
||||
)
|
||||
|
||||
# Generate report using the new format handling system
|
||||
report_content, mime_type = await self._generateReport(
|
||||
chatDocuments, title, outputFormat, includeMetadata, prompt
|
||||
# Use enhanced AI service with document generation
|
||||
try:
|
||||
# Build AI call options
|
||||
ai_options = AiCallOptions(
|
||||
operationType=operationType,
|
||||
processDocumentsIndividually=processDocumentsIndividually,
|
||||
compressContext=not chunkAllowed
|
||||
)
|
||||
|
||||
# Create meaningful output fileName with workflow context
|
||||
output_fileName = self._generateMeaningfulFileName(
|
||||
base_name="report",
|
||||
extension=outputFormat,
|
||||
action_name="generate"
|
||||
# Use enhanced AI service with document generation
|
||||
result = await self.services.ai.callAi(
|
||||
prompt=prompt,
|
||||
documents=chatDocuments,
|
||||
options=ai_options,
|
||||
outputFormat=outputFormat,
|
||||
title=title
|
||||
)
|
||||
|
||||
logger.info(f"Generated {outputFormat.upper()} report: {output_fileName} with {len(report_content)} characters")
|
||||
if isinstance(result, dict) and result.get("success"):
|
||||
# Extract document information from result
|
||||
documents = result.get("documents", [])
|
||||
if documents:
|
||||
# Convert to ActionDocument format
|
||||
action_documents = []
|
||||
for doc in documents:
|
||||
action_documents.append(ActionDocument(
|
||||
documentName=doc["documentName"],
|
||||
documentData=doc["documentData"],
|
||||
mimeType=doc["mimeType"]
|
||||
))
|
||||
|
||||
logger.info(f"Generated {outputFormat.upper()} report: {len(action_documents)} documents")
|
||||
return ActionResult.isSuccess(documents=action_documents)
|
||||
else:
|
||||
return ActionResult.isFailure(error="No documents generated")
|
||||
else:
|
||||
error_msg = result.get("error", "Unknown error") if isinstance(result, dict) else "AI generation failed"
|
||||
return ActionResult.isFailure(error=error_msg)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"AI generation failed: {str(e)}")
|
||||
return ActionResult.isFailure(error=str(e))
|
||||
|
||||
return ActionResult.isSuccess(
|
||||
documents=[ActionDocument(
|
||||
documentName=output_fileName,
|
||||
documentData=report_content,
|
||||
mimeType=mime_type
|
||||
)]
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error(f"Error generating report: {str(e)}")
|
||||
return ActionResult.isFailure(
|
||||
error=str(e)
|
||||
)
|
||||
|
||||
async def _generateReport(self, chatDocuments: List[Any], title: str, outputFormat: str, includeMetadata: bool, prompt: str) -> tuple[str, str]:
|
||||
"""
|
||||
Generate a report in the specified format using format-specific extraction:
|
||||
1. Get format-specific extraction prompt from renderer
|
||||
2. Extract content using AI with format-specific prompt
|
||||
3. Clean and return the formatted content
|
||||
"""
|
||||
try:
|
||||
# Get format-specific extraction prompt
|
||||
from modules.services.serviceGeneration.mainServiceGeneration import GenerationService
|
||||
generation_service = GenerationService(self.services)
|
||||
|
||||
extraction_prompt = generation_service.getExtractionPrompt(
|
||||
output_format=outputFormat,
|
||||
user_prompt=prompt,
|
||||
title=title
|
||||
)
|
||||
|
||||
# Extract content using format-specific prompt
|
||||
extracted_content = await self._extractContentWithPrompt(
|
||||
chatDocuments, extraction_prompt, includeMetadata
|
||||
)
|
||||
|
||||
# Render the extracted content (mostly just cleaning)
|
||||
rendered_content, mime_type = await generation_service.renderReport(
|
||||
extracted_content=extracted_content,
|
||||
output_format=outputFormat,
|
||||
title=title
|
||||
)
|
||||
|
||||
return rendered_content, mime_type
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error generating report: {str(e)}")
|
||||
# Fallback to simple text format
|
||||
fallback_content = f"# {title}\n\nError generating report: {str(e)}"
|
||||
return fallback_content, "text/plain"
|
||||
|
||||
async def _extractContentWithPrompt(self, chatDocuments: List[Any], extraction_prompt: str, includeMetadata: bool) -> str:
|
||||
"""
|
||||
Extract content from documents using a specific extraction prompt.
|
||||
"""
|
||||
try:
|
||||
# Use extraction service directly with format-specific prompt and all documents
|
||||
logger.info(f"Extracting content with format-specific prompt for {len(chatDocuments)} documents")
|
||||
|
||||
# Build extraction options for report generation
|
||||
extraction_options = {
|
||||
"prompt": extraction_prompt,
|
||||
"operationType": "generate_report",
|
||||
"processDocumentsIndividually": True,
|
||||
"chunkAllowed": True,
|
||||
"mergeStrategy": {
|
||||
"groupBy": "typeGroup",
|
||||
"orderBy": "id",
|
||||
"mergeType": "concatenate"
|
||||
}
|
||||
}
|
||||
|
||||
if not includeMetadata:
|
||||
extraction_options["includeMetadata"] = False
|
||||
|
||||
# Extract content using extraction service with format-specific prompt
|
||||
extracted_list = self.services.extraction.extractContent(
|
||||
documents=chatDocuments,
|
||||
options=extraction_options
|
||||
)
|
||||
|
||||
if not extracted_list:
|
||||
logger.warning("No content extracted from documents")
|
||||
return "No readable content found in documents"
|
||||
|
||||
# The extraction service should return format-specific content directly
|
||||
# Combine all extracted content
|
||||
all_extracted_content = []
|
||||
for ec in extracted_list:
|
||||
if ec and hasattr(ec, 'parts'):
|
||||
for part in ec.parts:
|
||||
try:
|
||||
if part.typeGroup in ("text", "table", "structure") and part.data:
|
||||
all_extracted_content.append(part.data)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if not all_extracted_content:
|
||||
logger.warning("No readable content found in extracted results")
|
||||
return "No readable content found in documents"
|
||||
|
||||
# Join all extracted content
|
||||
combined_content = "\n\n".join(all_extracted_content)
|
||||
|
||||
if not combined_content or combined_content.strip() == "":
|
||||
logger.error("No content extracted from documents")
|
||||
raise Exception("No content extracted from documents")
|
||||
|
||||
# Call AI service to process the content with the format-specific prompt
|
||||
logger.info(f"Calling AI service to process {len(combined_content)} characters with prompt")
|
||||
aiResponse = await self.services.ai.callAi(
|
||||
prompt=extraction_prompt,
|
||||
documents=chatDocuments, # Pass the original ChatDocument objects
|
||||
options=AiCallOptions(operationType=OperationType.GENERATE_CONTENT)
|
||||
)
|
||||
|
||||
if not aiResponse or aiResponse.strip() == "":
|
||||
logger.error("AI content generation failed")
|
||||
raise Exception("AI content generation failed")
|
||||
|
||||
# Clean up the AI response
|
||||
content = aiResponse.strip()
|
||||
|
||||
# Remove markdown code blocks if present
|
||||
if content.startswith("```") and content.endswith("```"):
|
||||
lines = content.split('\n')
|
||||
if len(lines) >= 2:
|
||||
content = '\n'.join(lines[1:-1]).strip()
|
||||
|
||||
logger.info(f"Successfully generated format-specific content: {len(content)} characters")
|
||||
return content
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error extracting content with prompt: {str(e)}")
|
||||
# Return minimal fallback content
|
||||
return f"Error extracting content: {str(e)}"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -292,22 +292,17 @@ class MethodOutlook(MethodBase):
|
|||
@action
|
||||
async def readEmails(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Read emails from Microsoft Outlook mailbox
|
||||
|
||||
USE FOR: Reading emails from Outlook, checking mailbox contents, retrieving email data
|
||||
DO NOT USE FOR: Sending emails, composing emails, web research, document generation
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection)
|
||||
OUTPUT FORMAT: JSON with email data and metadata
|
||||
DEPENDENCIES: Requires Microsoft connection, requires internet access
|
||||
WORKFLOW POSITION: Use for email analysis, before composing responses
|
||||
GENERAL:
|
||||
- Purpose: Read emails and metadata from a mailbox folder.
|
||||
- Input requirements: connectionReference (required); optional folder, limit, filter, expectedDocumentFormats.
|
||||
- Output format: JSON with emails and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
folder (str, optional): Email folder to read from (default: "Inbox")
|
||||
limit (int, optional): Maximum number of emails to read (default: 10)
|
||||
filter (str, optional): Filter criteria for emails. Supports: Email address (e.g., "user@domain.com") - filters by sender, Search queries (e.g., "from:user@domain.com", "subject:meeting"), Text content (e.g., "project update") - searches in subject
|
||||
expectedDocumentFormats (list, optional): Expected document formats with extension, mimeType, description
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- folder (str, optional): Folder to read from. Default: Inbox.
|
||||
- limit (int, optional): Maximum items to return. Default: 10.
|
||||
- filter (str, optional): Sender, query operators, or subject text.
|
||||
- expectedDocumentFormats (list, optional): Output format preferences.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -451,22 +446,17 @@ class MethodOutlook(MethodBase):
|
|||
@action
|
||||
async def searchEmails(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Search emails in Microsoft Outlook mailbox
|
||||
|
||||
USE FOR: Finding specific emails, searching mailbox contents, filtering email data
|
||||
DO NOT USE FOR: Sending emails, composing emails, web research, document generation
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection) and query (search terms)
|
||||
OUTPUT FORMAT: JSON with search results and email data
|
||||
DEPENDENCIES: Requires Microsoft connection, requires internet access
|
||||
WORKFLOW POSITION: Use for finding specific emails, before reading or responding
|
||||
GENERAL:
|
||||
- Purpose: Search emails by query and return matching items with metadata.
|
||||
- Input requirements: connectionReference (required); query (required); optional folder, limit, expectedDocumentFormats.
|
||||
- Output format: JSON with search results and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
query (str): Search query
|
||||
folder (str, optional): Folder to search in (default: "All")
|
||||
limit (int, optional): Maximum number of results (default: 20)
|
||||
expectedDocumentFormats (list, optional): Expected document formats with extension, mimeType, description
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- query (str, required): Search expression.
|
||||
- folder (str, optional): Folder scope or All. Default: All.
|
||||
- limit (int, optional): Maximum items to return. Default: 20.
|
||||
- expectedDocumentFormats (list, optional): Output format preferences.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -666,13 +656,16 @@ class MethodOutlook(MethodBase):
|
|||
|
||||
async def listDrafts(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
List email drafts in Outlook
|
||||
GENERAL:
|
||||
- Purpose: List draft emails from a folder.
|
||||
- Input requirements: connectionReference (required); optional folder, limit, expectedDocumentFormats.
|
||||
- Output format: JSON with draft items and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
folder (str, optional): Folder to search for drafts (default: "Drafts")
|
||||
limit (int, optional): Maximum number of drafts to list (default: 20)
|
||||
expectedDocumentFormats (list, optional): Expected document formats with extension, mimeType, description
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- folder (str, optional): Drafts folder to list. Default: Drafts.
|
||||
- limit (int, optional): Maximum items to return. Default: 20.
|
||||
- expectedDocumentFormats (list, optional): Output format preferences.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -789,12 +782,15 @@ class MethodOutlook(MethodBase):
|
|||
|
||||
async def findDrafts(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Find email drafts across all folders in Outlook
|
||||
GENERAL:
|
||||
- Purpose: Find draft emails across folders.
|
||||
- Input requirements: connectionReference (required); optional limit, expectedDocumentFormats.
|
||||
- Output format: JSON with drafts and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
limit (int, optional): Maximum number of drafts to find (default: 50)
|
||||
expectedDocumentFormats (list, optional): Expected document formats with extension, mimeType, description
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- limit (int, optional): Maximum items to return. Default: 50.
|
||||
- expectedDocumentFormats (list, optional): Output format preferences.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -926,12 +922,15 @@ class MethodOutlook(MethodBase):
|
|||
|
||||
async def checkDraftsFolder(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Check the contents of the Drafts folder directly
|
||||
GENERAL:
|
||||
- Purpose: Check contents of the Drafts folder.
|
||||
- Input requirements: connectionReference (required); optional limit, expectedDocumentFormats.
|
||||
- Output format: JSON with drafts and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
limit (int, optional): Maximum number of drafts to check (default: 20)
|
||||
expectedDocumentFormats (list, optional): Expected document formats with extension, mimeType, description
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- limit (int, optional): Maximum items to return. Default: 20.
|
||||
- expectedDocumentFormats (list, optional): Output format preferences.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -1041,24 +1040,19 @@ class MethodOutlook(MethodBase):
|
|||
@action
|
||||
async def composeAndSendEmailDirect(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Compose and send email directly with subject, body, and attachments
|
||||
|
||||
USE FOR: When you have all email details ready and want to send directly
|
||||
DO NOT USE FOR: When you need AI to generate email content from context
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference, to, subject, body parameters
|
||||
OUTPUT FORMAT: Email draft created successfully with confirmation
|
||||
DEPENDENCIES: Requires Microsoft connection and recipient details
|
||||
WORKFLOW POSITION: Use when you have complete email information ready to send
|
||||
GENERAL:
|
||||
- Purpose: Create and send/prepare email using provided subject, body, and recipients.
|
||||
- Input requirements: connectionReference (required); to (required); subject (required); body (required); optional cc, bcc, attachmentDocumentList.
|
||||
- Output format: JSON confirmation with draft/send metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): REQUIRED - Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
to (List[str]): REQUIRED - Email recipient addresses
|
||||
subject (str): REQUIRED - Email subject line
|
||||
body (str): REQUIRED - Email body content
|
||||
cc (List[str], optional): CC recipients
|
||||
bcc (List[str], optional): BCC recipients
|
||||
attachmentDocumentList (List[str], optional): Document references to include as email attachments
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- to (list, required): Recipient email addresses.
|
||||
- subject (str, required): Email subject.
|
||||
- body (str, required): Email body (plain text or HTML).
|
||||
- cc (list, optional): CC recipients.
|
||||
- bcc (list, optional): BCC recipients.
|
||||
- attachmentDocumentList (list, optional): Attachment document references.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -1205,25 +1199,20 @@ class MethodOutlook(MethodBase):
|
|||
@action
|
||||
async def composeAndSendEmailWithContext(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Compose and send email using AI to generate subject and body from context and documents
|
||||
|
||||
USE FOR: When you have context and documents but need AI to compose the email content
|
||||
DO NOT USE FOR: When you already have complete email details ready
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference, to, context, and optional documentList
|
||||
OUTPUT FORMAT: Email draft created successfully with AI-generated content
|
||||
DEPENDENCIES: Requires Microsoft connection, AI service, and context/documents
|
||||
WORKFLOW POSITION: Use when you need AI to generate email content from available information
|
||||
GENERAL:
|
||||
- Purpose: Compose email content using AI from context and optional documents, then create a draft/send.
|
||||
- Input requirements: connectionReference (required); to (required); context (required); optional documentList, cc, bcc, emailStyle, maxLength.
|
||||
- Output format: JSON confirmation with AI-generated draft/send metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): REQUIRED - Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
to (List[str]): REQUIRED - Email recipient addresses
|
||||
context (str): REQUIRED - Context information for email composition
|
||||
documentList (List[str], optional): Document references to include as context and attachments
|
||||
cc (List[str], optional): CC recipients
|
||||
bcc (List[str], optional): BCC recipients
|
||||
emailStyle (str, optional): Email style (formal, casual, business) - default: "business"
|
||||
maxLength (int, optional): Maximum length for generated content - default: 1000
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- to (list, required): Recipient email addresses.
|
||||
- context (str, required): Context for composing the email.
|
||||
- documentList (list, optional): Document references for context/attachments.
|
||||
- cc (list, optional): CC recipients.
|
||||
- bcc (list, optional): BCC recipients.
|
||||
- emailStyle (str, optional): formal | casual | business. Default: business.
|
||||
- maxLength (int, optional): Maximum length for generated content. Default: 1000.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -1457,10 +1446,13 @@ Make sure the email is:
|
|||
|
||||
async def checkPermissions(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Check if the current Microsoft connection has the necessary permissions for Outlook operations.
|
||||
GENERAL:
|
||||
- Purpose: Verify that the connection has required permissions for Outlook operations.
|
||||
- Input requirements: connectionReference (required).
|
||||
- Output format: JSON with permission status and details.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list) to check
|
||||
- connectionReference (str, required): Microsoft connection label to check.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
|
|||
|
|
@ -443,21 +443,16 @@ class MethodSharepoint(MethodBase):
|
|||
@action
|
||||
async def findDocumentPath(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Find documents and folders by searching their names across SharePoint sites
|
||||
|
||||
USE FOR: Locating SharePoint documents, finding folders, searching for specific files, discovering content
|
||||
DO NOT USE FOR: Reading document content, uploading files, email operations, web research
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection) and searchQuery (what to find)
|
||||
OUTPUT FORMAT: JSON with found documents/folders and their paths
|
||||
DEPENDENCIES: Requires Microsoft connection, requires internet access
|
||||
WORKFLOW POSITION: Use first to locate documents, before readDocuments or uploadDocument
|
||||
GENERAL:
|
||||
- Purpose: Find documents and folders by name/path across sites.
|
||||
- Input requirements: connectionReference (required); searchQuery (required); optional site, maxResults.
|
||||
- Output format: JSON with found items and paths.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Microsoft connection reference (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
site (str, optional): Site hint (e.g., "SSS", "KM XYZ")
|
||||
searchQuery (str): Search query - "budget", "folders:alpha", "files:budget", "/Documents/Project1", "namepart1 namepart2 namepart3". Use "folders:" prefix when user wants to store files or find folders
|
||||
maxResults (int, optional): Max results (default: 100)
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- site (str, optional): Site hint.
|
||||
- searchQuery (str, required): Search terms or path.
|
||||
- maxResults (int, optional): Maximum items to return. Default: 100.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -822,22 +817,17 @@ class MethodSharepoint(MethodBase):
|
|||
@action
|
||||
async def readDocuments(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Read documents from SharePoint and extract their content
|
||||
|
||||
USE FOR: Reading SharePoint document content, extracting text from files, processing documents
|
||||
DO NOT USE FOR: Finding documents, uploading files, email operations, web research
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection) and documentList (from findDocumentPath)
|
||||
OUTPUT FORMAT: Documents with extracted content and metadata
|
||||
DEPENDENCIES: Requires Microsoft connection, requires documentList from findDocumentPath action
|
||||
WORKFLOW POSITION: Use after findDocumentPath, before document analysis or generation
|
||||
GENERAL:
|
||||
- Purpose: Read documents from SharePoint and extract content/metadata.
|
||||
- Input requirements: connectionReference (required); documentList (required); optional pathObject or pathQuery; includeMetadata.
|
||||
- Output format: JSON with read results per document.
|
||||
|
||||
Parameters:
|
||||
documentList (list): Reference(s) to the document list to read
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
pathObject (str, optional): Path object to locate documents. This can ONLY be a reference to a result from sharepoint.findDocumentPath action
|
||||
pathQuery (str, optional): Path query to locate documents, only if no pathObject is provided (e.g., "/Documents/Project1", "*" for all sites)
|
||||
includeMetadata (bool, optional): Whether to include metadata (default: True)
|
||||
- documentList (list, required): Document list reference(s) to read.
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- pathObject (str, optional): Reference to a previous path result.
|
||||
- pathQuery (str, optional): Path query if no pathObject.
|
||||
- includeMetadata (bool, optional): Include metadata. Default: True.
|
||||
"""
|
||||
try:
|
||||
documentList = parameters.get("documentList")
|
||||
|
|
@ -1106,22 +1096,17 @@ class MethodSharepoint(MethodBase):
|
|||
@action
|
||||
async def uploadDocument(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
Upload documents to SharePoint sites
|
||||
|
||||
USE FOR: Uploading files to SharePoint, storing documents, saving generated content
|
||||
DO NOT USE FOR: Reading documents, finding documents, email operations, web research
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection), documentList (files to upload), and fileNames
|
||||
OUTPUT FORMAT: JSON with upload status and file information
|
||||
DEPENDENCIES: Requires Microsoft connection, requires documents to upload
|
||||
WORKFLOW POSITION: Use after document generation, as final storage step
|
||||
GENERAL:
|
||||
- Purpose: Upload documents to SharePoint.
|
||||
- Input requirements: connectionReference (required); documentList (required); fileNames (required); optional pathObject or pathQuery.
|
||||
- Output format: JSON with upload status and file info.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
pathObject (str, optional): Path object to locate documents. This can ONLY be a reference to a result from sharepoint.findDocumentPath action
|
||||
pathQuery (str, optional): Path query to locate documents, only if no pathObject is provided (e.g., "/Documents/Project1", "*" for all sites)
|
||||
documentList (list): Reference(s) to the document list to upload
|
||||
fileNames (List[str]): List of names for the uploaded files
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- pathObject (str, optional): Reference to a previous path result.
|
||||
- pathQuery (str, optional): Upload target path if no pathObject.
|
||||
- documentList (list, required): Document reference(s) to upload.
|
||||
- fileNames (list, required): Output file names.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
@ -1466,21 +1451,16 @@ class MethodSharepoint(MethodBase):
|
|||
@action
|
||||
async def listDocuments(self, parameters: Dict[str, Any]) -> ActionResult:
|
||||
"""
|
||||
List documents in SharePoint folders across accessible sites
|
||||
|
||||
USE FOR: Browsing SharePoint folders, listing available documents, exploring content structure
|
||||
DO NOT USE FOR: Reading document content, uploading files, email operations, web research
|
||||
|
||||
INPUT REQUIREMENTS: Requires connectionReference (Microsoft connection)
|
||||
OUTPUT FORMAT: JSON with document list and folder structure
|
||||
DEPENDENCIES: Requires Microsoft connection, requires internet access
|
||||
WORKFLOW POSITION: Use for exploring SharePoint content, before findDocumentPath
|
||||
GENERAL:
|
||||
- Purpose: List documents and folders in SharePoint paths across sites.
|
||||
- Input requirements: connectionReference (required); optional pathObject or pathQuery; includeSubfolders.
|
||||
- Output format: JSON with folder items and metadata.
|
||||
|
||||
Parameters:
|
||||
connectionReference (str): Reference to the Microsoft connection (must be a connection label from AVAILABLE_CONNECTIONS_INDEX list)
|
||||
pathObject (str, optional): Path object to locate documents. This can ONLY be a reference to a result from sharepoint.findDocumentPath action
|
||||
pathQuery (str, optional): Path query to locate documents, only if no pathObject is provided (e.g., "/Documents/Project1", "*" for all sites)
|
||||
includeSubfolders (bool, optional): Whether to include subfolders (default: False)
|
||||
- connectionReference (str, required): Microsoft connection label.
|
||||
- pathObject (str, optional): Reference to a previous path result.
|
||||
- pathQuery (str, optional): Path query if no pathObject.
|
||||
- includeSubfolders (bool, optional): Include one level of subfolders. Default: False.
|
||||
"""
|
||||
try:
|
||||
connectionReference = parameters.get("connectionReference")
|
||||
|
|
|
|||
|
|
@ -7,10 +7,7 @@ from typing import Dict, Any
|
|||
from modules.datamodels.datamodelChat import TaskStep, TaskContext, TaskPlan
|
||||
from modules.datamodels.datamodelAi import AiCallOptions, OperationType, ProcessingMode, Priority
|
||||
from modules.workflows.processing.shared.promptGenerationTaskplan import (
|
||||
createTaskPlanningPromptTemplate
|
||||
)
|
||||
from modules.workflows.processing.shared.placeholderFactory import (
|
||||
extractUserPrompt
|
||||
generateTaskPlanningPrompt
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -86,22 +83,10 @@ class TaskPlanner:
|
|||
}
|
||||
)
|
||||
|
||||
# Generate the task planning prompt with placeholders
|
||||
taskPlanningPromptTemplate = createTaskPlanningPromptTemplate()
|
||||
|
||||
# Extract content for placeholders
|
||||
userPrompt = extractUserPrompt(taskPlanningContext)
|
||||
# Task planner only needs document count, not full document list
|
||||
availableDocuments = self.services.workflow.getDocumentCount()
|
||||
# Use centralized workflow history context function
|
||||
workflowHistory = self.services.workflow.getWorkflowHistoryContext()
|
||||
|
||||
# Create placeholders dictionary
|
||||
placeholders = {
|
||||
"USER_PROMPT": userPrompt,
|
||||
"AVAILABLE_DOCUMENTS": availableDocuments,
|
||||
"WORKFLOW_HISTORY": workflowHistory
|
||||
}
|
||||
# Build prompt bundle (template + placeholders) using new API
|
||||
bundle = generateTaskPlanningPrompt(self.services, taskPlanningContext)
|
||||
taskPlanningPromptTemplate = bundle.prompt
|
||||
placeholders = bundle.placeholders
|
||||
|
||||
# Log task planning prompt sent to AI
|
||||
logger.info("=== TASK PLANNING PROMPT SENT TO AI ===")
|
||||
|
|
|
|||
|
|
@ -144,10 +144,11 @@ class ReactMode(BaseMode):
|
|||
|
||||
# NEW: Use adaptive stopping logic
|
||||
progressState = self.progressTracker.getCurrentProgress()
|
||||
shouldContinue = self.progressTracker.shouldContinue(progressState, observation.get('contentValidation', {}))
|
||||
continueByProgress = self.progressTracker.shouldContinue(progressState, observation.get('contentValidation', {}))
|
||||
continueByReview = shouldContinue(observation, lastReviewDict, step, state.max_steps)
|
||||
|
||||
if not shouldContinue or not shouldContinue(observation, lastReviewDict, step, state.max_steps):
|
||||
logger.info(f"Stopping at step {step}: shouldContinue={shouldContinue}, shouldContinue={shouldContinue(observation, lastReviewDict, step, state.max_steps)}")
|
||||
if not continueByProgress or not continueByReview:
|
||||
logger.info(f"Stopping at step {step}: progress={continueByProgress}, review={continueByReview}")
|
||||
break
|
||||
step += 1
|
||||
|
||||
|
|
@ -248,13 +249,16 @@ class ReactMode(BaseMode):
|
|||
placeholders=placeholders,
|
||||
options=options
|
||||
)
|
||||
self._writeTraceLog("React Parameters Response", paramsResp)
|
||||
|
||||
# Parse JSON response
|
||||
js = paramsResp[paramsResp.find('{'):paramsResp.rfind('}')+1] if paramsResp else '{}'
|
||||
try:
|
||||
paramObj = json.loads(js)
|
||||
parameters = paramObj.get('parameters', {}) if isinstance(paramObj, dict) else {}
|
||||
# Log only the parsed JSON object to avoid duplicated raw text
|
||||
try:
|
||||
self._writeTraceLog("React Parameters Response", paramObj)
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to parse AI parameters response as JSON: {str(e)}")
|
||||
logger.error(f"Response was: {paramsResp}")
|
||||
|
|
|
|||
|
|
@ -100,8 +100,8 @@ def getMethodsList(serviceCenter):
|
|||
|
||||
return "\n\n".join(methodsList)
|
||||
|
||||
def getActionParameterSignature(methodName: str, actionName: str, methods: Dict[str, Any]) -> str:
|
||||
"""Get action parameter signature from method docstring for AI parameter generation"""
|
||||
def getActionParameterList(methodName: str, actionName: str, methods: Dict[str, Any]) -> str:
|
||||
"""Get action parameter list from method docstring for AI parameter generation (list only)."""
|
||||
try:
|
||||
if not methods or methodName not in methods:
|
||||
return ""
|
||||
|
|
@ -123,7 +123,8 @@ def getActionParameterSignature(methodName: str, actionName: str, methods: Dict[
|
|||
else:
|
||||
param_list.append(f"- {paramName} ({paramType})")
|
||||
|
||||
return "Required parameters:\n" + "\n".join(param_list)
|
||||
# Return list only, without leading headings or trailing text
|
||||
return "\n".join(param_list)
|
||||
except Exception as e:
|
||||
logger.error(f"Error getting action parameter signature for {methodName}.{actionName}: {str(e)}")
|
||||
return ""
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ from modules.workflows.processing.shared.placeholderFactory import (
|
|||
extractLearningsAndImprovements,
|
||||
extractLatestRefinementFeedback,
|
||||
)
|
||||
from modules.workflows.processing.shared.methodDiscovery import methods, getActionParameterSignature
|
||||
from modules.workflows.processing.shared.methodDiscovery import methods, getActionParameterList
|
||||
|
||||
def generateReactPlanSelectionPrompt(services, context: Any) -> PromptBundle:
|
||||
"""Define placeholders first, then the template; return PromptBundle."""
|
||||
|
|
@ -53,9 +53,9 @@ def generateReactPlanSelectionPrompt(services, context: Any) -> PromptBundle:
|
|||
|
||||
def generateReactParametersPrompt(services, context: Any, compoundActionName: str) -> PromptBundle:
|
||||
"""Define placeholders first, then the template; return PromptBundle."""
|
||||
# derive method/action and signature
|
||||
# derive method/action and parameter list
|
||||
methodName, actionName = (compoundActionName.split('.', 1) if '.' in compoundActionName else (compoundActionName, ''))
|
||||
actionSignature = getActionParameterSignature(methodName, actionName, methods)
|
||||
actionParameterList = getActionParameterList(methodName, actionName, methods)
|
||||
|
||||
# determine action objective if available, else fall back to user prompt
|
||||
actionObjective = None
|
||||
|
|
@ -68,7 +68,7 @@ def generateReactParametersPrompt(services, context: Any, compoundActionName: st
|
|||
|
||||
placeholders: List[PromptPlaceholder] = [
|
||||
PromptPlaceholder(label="ACTION_OBJECTIVE", content=actionObjective, summaryAllowed=False),
|
||||
PromptPlaceholder(label="ACTION_SIGNATURE", content=actionSignature, summaryAllowed=False),
|
||||
PromptPlaceholder(label="ACTION_PARAMETER_LIST", content=actionParameterList, summaryAllowed=False),
|
||||
PromptPlaceholder(label="AVAILABLE_DOCUMENTS_INDEX", content=extractAvailableDocumentsIndex(services, context), summaryAllowed=True),
|
||||
PromptPlaceholder(label="AVAILABLE_CONNECTIONS_INDEX", content=extractAvailableConnectionsIndex(services), summaryAllowed=False),
|
||||
PromptPlaceholder(label="USER_PROMPT", content=extractUserPrompt(context), summaryAllowed=False),
|
||||
|
|
@ -81,11 +81,40 @@ def generateReactParametersPrompt(services, context: Any, compoundActionName: st
|
|||
|
||||
template = """Generate parameters for this action.
|
||||
|
||||
Return ONLY a JSON RESPONSEOBJECT without comments.
|
||||
|
||||
JSON RESPONSEOBJECT:
|
||||
{{
|
||||
"schema": "parameters_v1",
|
||||
"parameters": {{
|
||||
"paramName": "value"
|
||||
}}
|
||||
}}
|
||||
|
||||
EXAMPLE of the result format to deliver:
|
||||
{{
|
||||
"schema": "parameters_v1",
|
||||
"parameters": {{
|
||||
"aiPrompt": "...",
|
||||
"resultType": "docx",
|
||||
"processingMode": "detailed"
|
||||
}}
|
||||
}}
|
||||
|
||||
RULES:
|
||||
1. Use ONLY parameter names from ACTION_PARAMETER_LIST
|
||||
2. Use exact connection references from AVAILABLE_CONNECTIONS_INDEX for connectionReference parameters
|
||||
3. Use exact document references from AVAILABLE_DOCUMENTS_INDEX for documentList parameters
|
||||
4. Learn from PREVIOUS_ACTION_RESULTS and LEARNINGS_AND_IMPROVEMENTS to avoid repeating mistakes
|
||||
5. Consider LATEST_REFINEMENT_FEEDBACK when generating parameters
|
||||
6. Use the ACTION_OBJECTIVE to understand the specific goal for this action
|
||||
7. Generate parameters that align with the USER_LANGUAGE when applicable
|
||||
|
||||
ACTION_OBJECTIVE (the objective for this action to fulfill):
|
||||
{{KEY:ACTION_OBJECTIVE}}
|
||||
|
||||
ACTION_SIGNATURE (the signature of the action to generate parameters for):
|
||||
{{KEY:ACTION_SIGNATURE}}
|
||||
ACTION_PARAMETER_LIST:
|
||||
{{KEY:ACTION_PARAMETER_LIST}}
|
||||
|
||||
AVAILABLE_DOCUMENTS_INDEX:
|
||||
{{KEY:AVAILABLE_DOCUMENTS_INDEX}}
|
||||
|
|
@ -110,26 +139,6 @@ def generateReactParametersPrompt(services, context: Any, compoundActionName: st
|
|||
|
||||
SELECTED_ACTION:
|
||||
{{KEY:SELECTED_ACTION}}
|
||||
|
||||
REPLY: Return only a JSON object with the parameters according to the ACTION_SIGNATURE without any comments in the structure below:
|
||||
{{
|
||||
"parameters": {{
|
||||
"parameter": "value",
|
||||
}},
|
||||
"signature": [List of all signatures, you see in the ACTION_SIGNATURE]
|
||||
}}
|
||||
|
||||
RULES:
|
||||
1. Use ONLY parameter names from ACTION_SIGNATURE
|
||||
2. Use exact connection references from AVAILABLE_CONNECTIONS_INDEX for connectionReference parameters
|
||||
3. Use exact document references from AVAILABLE_DOCUMENTS_INDEX for documentList parameters
|
||||
4. Learn from PREVIOUS_ACTION_RESULTS and LEARNINGS_AND_IMPROVEMENTS to avoid repeating mistakes
|
||||
5. Consider LATEST_REFINEMENT_FEEDBACK when generating parameters
|
||||
6. Use the ACTION_OBJECTIVE to understand the specific goal for this action
|
||||
7. Generate parameters that align with the USER_LANGUAGE when applicable
|
||||
8. Return ONLY JSON - no other text
|
||||
9. Do NOT use markdown code blocks
|
||||
10. Do NOT add explanations
|
||||
"""
|
||||
|
||||
return PromptBundle(prompt=template, placeholders=placeholders)
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
Betreff: Terminverschiebung - Besprechung vom 10.00 Uhr
|
||||
|
||||
Sehr geehrter Herr Muster,
|
||||
|
||||
ich hoffe, diese E-Mail erreicht Sie gut. Bezüglich unseres für heute um 10.00 Uhr geplanten Termins zur Besprechung der Quartalszahlen und Marketingstrategie möchte ich Sie um eine Verschiebung auf Freitag bitten.
|
||||
|
||||
Wäre es für Sie möglich, den Termin am Freitag zur gleichen Uhrzeit (10.00 Uhr) wahrzunehmen? Die Agenda bleibt unverändert:
|
||||
- Präsentation der Q3-Ergebnisse
|
||||
- Diskussion der Marketingziele 2024
|
||||
- Budgetplanung
|
||||
|
||||
Anbei finden Sie bereits die aktualisierte Präsentation als PDF-Datei zur Vorbereitung.
|
||||
|
||||
Ich bitte um kurze Rückmeldung, ob der neue Terminvorschlag für Sie passend ist.
|
||||
|
||||
Vielen Dank für Ihr Verständnis.
|
||||
|
||||
Mit freundlichen Grüßen
|
||||
Valueon Team
|
||||
|
||||
Valueon GmbH
|
||||
Musterstraße 1
|
||||
10115 Berlin
|
||||
Tel.: +49 30 123456789
|
||||
E-Mail: info@valueon.de
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"documents": [
|
||||
{
|
||||
"data": "Betreff: Terminverschiebung - Besprechung vom 10.00 Uhr\n\nSehr geehrter Herr Muster,\n\nich hoffe, diese E-Mail erreicht Sie gut. Bezüglich unseres für heute um 10.00 Uhr geplanten Termins zur Besprechung der Quartalszahlen und Marketingstrategie möchte ich Sie um eine Verschiebung auf Freitag bitten.\n\nWäre es für Sie möglich, den Termin am Freitag zur gleichen Uhrzeit (10.00 Uhr) wahrzunehmen? Die Agenda bleibt unverändert:\n- Präsentation der Q3-Ergebnisse\n- Diskussion der Marketingziele 2024\n- Budgetplanung\n\nAnbei finden Sie bereits die aktualisierte Präsentation als PDF-Datei zur Vorbereitung.\n\nIch bitte um kurze Rückmeldung, ob der neue Terminvorschlag für Sie passend ist.\n\nVielen Dank für Ihr Verständnis.\n\nMit freundlichen Grüßen\nValueon Team\n\nValueon GmbH\nMusterstraße 1\n10115 Berlin\nTel.: +49 30 123456789\nE-Mail: info@valueon.de",
|
||||
"mimeType": "text/plain",
|
||||
"comment": "Formal German business email requesting appointment rescheduling with complete structure and professional tone"
|
||||
}
|
||||
],
|
||||
"continue": false
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
documents: 1
|
||||
doc[1]: name=ai_result_r0t0a0.txt, mimeType=text/plain
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"documents": [
|
||||
{
|
||||
"data": "Betreff: Terminverschiebung - Meeting vom [aktuelles Datum]
|
||||
|
||||
Sehr geehrter Herr Muster,
|
||||
|
||||
ich hoffe, diese E-Mail erreicht Sie gut. Bezüglich unseres für heute um 10:00 Uhr geplanten Termins möchte ich Sie um eine Verschiebung auf Freitag bitten.
|
||||
|
||||
Termindetails:
|
||||
- Ursprünglicher Termin: heute, 10:00 Uhr
|
||||
- Vorgeschlagener neuer Termin: Freitag (gleiche Uhrzeit)
|
||||
- Dauer: wie ursprünglich geplant
|
||||
- Ort: unverändert
|
||||
|
||||
Im Anhang finden Sie die aktualisierten Unterlagen für unser Meeting.
|
||||
|
||||
Bitte lassen Sie mich wissen, ob der neue Terminvorschlag für Sie passend ist. Falls nicht, können wir gerne einen alternativen Zeitpunkt finden.
|
||||
|
||||
Mit freundlichen Grüßen
|
||||
|
||||
[Ihr Name]
|
||||
|
||||
Anhang: [Dokumentname]",
|
||||
"mimeType": "text/plain",
|
||||
"comment": "Formal German email requesting appointment rescheduling with placeholder text for specific details that need to be filled in"
|
||||
}
|
||||
],
|
||||
"continue": false
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"documents": [
|
||||
{
|
||||
"data": "Betreff: Terminverschiebung - Meeting vom [aktuelles Datum]
|
||||
|
||||
Sehr geehrter Herr Muster,
|
||||
|
||||
ich hoffe, diese E-Mail erreicht Sie gut. Bezüglich unseres für heute um 10:00 Uhr geplanten Termins möchte ich Sie um eine Verschiebung auf Freitag bitten.
|
||||
|
||||
Termindetails:
|
||||
- Ursprünglicher Termin: heute, 10:00 Uhr
|
||||
- Vorgeschlagener neuer Termin: Freitag (gleiche Uhrzeit)
|
||||
- Dauer: wie ursprünglich geplant
|
||||
- Ort: unverändert
|
||||
|
||||
Im Anhang finden Sie die aktualisierten Unterlagen für unser Meeting.
|
||||
|
||||
Bitte lassen Sie mich wissen, ob der neue Terminvorschlag für Sie passend ist. Falls nicht, können wir gerne einen alternativen Zeitpunkt finden.
|
||||
|
||||
Mit freundlichen Grüßen
|
||||
|
||||
[Ihr Name]
|
||||
|
||||
Anhang: [Dokumentname]",
|
||||
"mimeType": "text/plain",
|
||||
"comment": "Formal German email requesting appointment rescheduling with placeholder text for specific details that need to be filled in"
|
||||
}
|
||||
],
|
||||
"continue": false
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
documents: 1
|
||||
doc[1]: name=ai_result_r0t0a0.txt, mimeType=text/plain
|
||||
|
|
@ -0,0 +1,246 @@
|
|||
AI GENERATED DOCUMENT
|
||||
|
||||
Generated: [Current Date]
|
||||
|
||||
FIRST 1000 PRIME NUMBERS
|
||||
A Comprehensive Reference Guide
|
||||
|
||||
EXECUTIVE SUMMARY
|
||||
This document provides a complete listing of the first 1000 prime numbers organized in a clear tabular format. Prime numbers are natural numbers greater than 1 that are only divisible by 1 and themselves.
|
||||
|
||||
INTRODUCTION TO PRIME NUMBERS
|
||||
Prime numbers form the building blocks of mathematics and have crucial applications in cryptography, computer science, and number theory. A prime number has exactly two factors: 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, and so on.
|
||||
|
||||
PRIME NUMBERS LISTING
|
||||
(Organized in 10 columns per row)
|
||||
|
||||
2 3 5 7 11 13 17 19 23 29
|
||||
31 37 41 43 47 53 59 61 67 71
|
||||
73 79 83 89 97 101 103 107 109 113
|
||||
127 131 137 139 149 151 157 163 167 173
|
||||
179 181 191 193 197 199 211 223 227 229
|
||||
233 239 241 251 257 263 269 271 277 281
|
||||
283 293 307 311 313 317 331 337 347 349
|
||||
[Content continues with remaining prime numbers through 1000...]
|
||||
|
||||
APPENDIX
|
||||
- Source: Computational generation of prime numbers
|
||||
- Verification: Each number has been verified as prime through algorithmic testing
|
||||
- Usage: Reference only, verify independently for critical applications
|
||||
|
||||
NOTE: Due to length constraints, this is a partial response showing the format and initial numbers. The complete list would continue in the same format through the 1000th prime number.
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
353 359 367 373 379 383 389 397 401 409
|
||||
419 421 431 433 439 443 449 457 461 463
|
||||
467 479 487 491 499 503 509 521 523 541
|
||||
547 557 563 569 571 577 587 593 599 601
|
||||
607 613 617 619 631 641 643 647 653 659
|
||||
661 673 677 683 691 701 709 719 727 733
|
||||
739 743 751 757 761 769 773 787 797 809
|
||||
811 821 823 827 829 839 853 857 859 863
|
||||
877 881 883 887 907 911 919 929 937 941
|
||||
947 953 967 971 977 983 991 997 1009 1013
|
||||
1019 1021 1031 1033 1039 1049 1051 1061 1063 1069
|
||||
1087 1091 1093 1097 1103 1109 1117 1123 1129 1151
|
||||
1153 1163 1171 1181 1187 1193 1201 1213 1217 1223
|
||||
1229 1231 1237 1249 1259 1277 1279 1283 1289 1291
|
||||
1297 1301 1303 1307 1319 1321 1327 1361 1367 1373
|
||||
|
||||
[Content continues with remaining prime numbers through 1000th prime...]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Each row contains 10 prime numbers for easy reference
|
||||
- Numbers are left-aligned within columns
|
||||
- Spacing maintained for readability
|
||||
- Verified prime numbers through computational methods
|
||||
|
||||
Based on the source documents, I'll continue the prime number listing from where it left off:
|
||||
|
||||
1381 1399 1409 1423 1427 1429 1433 1439 1447 1451
|
||||
1453 1459 1471 1481 1483 1487 1489 1493 1499 1511
|
||||
1523 1531 1543 1549 1553 1559 1567 1571 1579 1583
|
||||
1597 1601 1607 1609 1613 1619 1621 1627 1637 1657
|
||||
1663 1667 1669 1693 1697 1699 1709 1721 1723 1733
|
||||
1741 1747 1753 1759 1777 1783 1787 1789 1801 1811
|
||||
1823 1831 1847 1861 1867 1871 1873 1877 1879 1889
|
||||
1901 1907 1913 1931 1933 1949 1951 1973 1979 1987
|
||||
1993 1997 1999 2003 2011 2017 2027 2029 2039 2053
|
||||
2063 2069 2081 2083 2087 2089 2099 2111 2113 2129
|
||||
2131 2137 2141 2143 2153 2161 2179 2203 2207 2213
|
||||
2221 2237 2239 2243 2251 2267 2269 2273 2281 2287
|
||||
2293 2297 2309 2311 2333 2339 2341 2347 2351 2357
|
||||
2371 2377 2381 2383 2389 2393 2399 2411 2417 2423
|
||||
2437 2441 2447 2459 2467 2473 2477 2503 2521 2531
|
||||
|
||||
[Content continues systematically through remaining prime numbers to 1000th prime]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Numbers verified through computational methods
|
||||
- Format maintains 10 columns per row for readability
|
||||
- Left-aligned numerical presentation
|
||||
- Consistent spacing between entries
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
2539 2543 2549 2551 2557 2579 2591 2593 2609 2617
|
||||
2621 2633 2647 2657 2659 2663 2671 2677 2683 2687
|
||||
2689 2693 2699 2707 2711 2713 2719 2729 2731 2741
|
||||
2749 2753 2767 2777 2789 2791 2797 2801 2803 2819
|
||||
2833 2837 2843 2851 2857 2861 2879 2887 2897 2903
|
||||
2909 2917 2927 2939 2953 2957 2963 2969 2971 2999
|
||||
3001 3011 3019 3023 3037 3041 3049 3061 3067 3079
|
||||
3083 3089 3109 3119 3121 3137 3163 3167 3169 3181
|
||||
3187 3191 3203 3209 3217 3221 3229 3251 3253 3257
|
||||
3259 3271 3299 3301 3307 3313 3319 3323 3329 3331
|
||||
3343 3347 3359 3361 3371 3373 3389 3391 3407 3413
|
||||
3433 3449 3457 3461 3463 3467 3469 3491 3499 3511
|
||||
3517 3527 3529 3533 3539 3541 3547 3557 3559 3571
|
||||
3581 3583 3593 3607 3613 3617 3623 3631 3637 3643
|
||||
3659 3671 3673 3677 3691 3697 3701 3709 3719 3727
|
||||
|
||||
[Content continues systematically through remaining prime numbers...]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Consistent 10-column format maintained
|
||||
- Numbers verified for primality
|
||||
- Left-aligned presentation
|
||||
- Professional spacing and layout
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
3733 3739 3761 3767 3769 3779 3793 3797 3803 3821
|
||||
3823 3833 3847 3851 3853 3863 3877 3881 3889 3907
|
||||
3911 3917 3919 3923 3929 3931 3943 3947 3967 3989
|
||||
4001 4003 4007 4013 4019 4021 4027 4049 4051 4057
|
||||
4073 4079 4091 4093 4099 4111 4127 4129 4133 4139
|
||||
4153 4157 4159 4177 4201 4211 4217 4219 4229 4231
|
||||
4241 4243 4253 4259 4261 4271 4273 4283 4289 4297
|
||||
4327 4337 4339 4349 4357 4363 4373 4391 4397 4409
|
||||
4421 4423 4441 4447 4451 4457 4463 4481 4483 4493
|
||||
4507 4513 4517 4519 4523 4547 4549 4561 4567 4583
|
||||
4591 4597 4603 4621 4637 4639 4643 4649 4651 4657
|
||||
4663 4673 4679 4691 4703 4721 4723 4729 4733 4751
|
||||
4759 4783 4787 4789 4793 4799 4801 4813 4817 4831
|
||||
4861 4871 4877 4889 4903 4909 4919 4931 4933 4937
|
||||
4943 4951 4957 4967 4969 4973 4987 4993 4999 5003
|
||||
|
||||
[Content continues systematically through remaining prime numbers...]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Maintaining consistent 10-column format
|
||||
- Numbers computationally verified as prime
|
||||
- Professional spacing and alignment
|
||||
- Sequential presentation maintained
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
5009 5011 5021 5023 5039 5051 5059 5077 5081 5087
|
||||
5099 5101 5107 5113 5119 5147 5153 5167 5171 5179
|
||||
5189 5197 5209 5227 5231 5233 5237 5261 5273 5279
|
||||
5281 5297 5303 5309 5323 5333 5347 5351 5381 5387
|
||||
5393 5399 5407 5413 5417 5419 5431 5437 5441 5443
|
||||
5449 5471 5477 5479 5483 5501 5503 5507 5519 5521
|
||||
5527 5531 5557 5563 5569 5573 5581 5591 5623 5639
|
||||
5641 5647 5651 5653 5657 5659 5669 5683 5689 5693
|
||||
5701 5711 5717 5737 5741 5743 5749 5779 5783 5791
|
||||
5801 5807 5813 5821 5827 5839 5843 5849 5851 5857
|
||||
5861 5867 5869 5879 5881 5897 5903 5923 5927 5939
|
||||
5953 5981 5987 6007 6011 6029 6037 6043 6047 6053
|
||||
6067 6073 6079 6089 6091 6101 6113 6121 6131 6133
|
||||
6143 6151 6163 6173 6197 6199 6203 6211 6217 6221
|
||||
6229 6247 6257 6263 6269 6271 6277 6287 6299 6301
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Numbers verified through computational methods
|
||||
- Consistent 10-column format maintained
|
||||
- Professional spacing and layout
|
||||
- Sequential presentation preserved
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
6311 6317 6323 6329 6337 6343 6353 6359 6361 6367
|
||||
6373 6379 6389 6397 6421 6427 6449 6451 6469 6473
|
||||
6481 6491 6521 6529 6547 6551 6553 6563 6569 6571
|
||||
6577 6581 6599 6607 6619 6637 6653 6659 6661 6673
|
||||
6679 6689 6691 6701 6703 6709 6719 6733 6737 6761
|
||||
6763 6779 6781 6791 6793 6803 6823 6827 6829 6833
|
||||
6841 6857 6863 6869 6871 6883 6899 6907 6911 6917
|
||||
6947 6949 6959 6961 6967 6971 6977 6983 6991 6997
|
||||
7001 7013 7019 7027 7039 7043 7057 7069 7079 7103
|
||||
7109 7121 7127 7129 7151 7159 7177 7187 7193 7207
|
||||
7211 7213 7219 7229 7237 7243 7247 7253 7283 7297
|
||||
7307 7309 7321 7331 7333 7349 7351 7369 7393 7411
|
||||
7417 7433 7451 7457 7459 7477 7481 7487 7489 7499
|
||||
7507 7517 7523 7529 7537 7541 7547 7549 7559 7561
|
||||
7573 7577 7583 7589 7591 7603 7607 7621 7639 7643
|
||||
|
||||
[Content continues systematically through remaining prime numbers...]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Consistent 10-column format maintained
|
||||
- Numbers verified for primality
|
||||
- Professional spacing and layout
|
||||
- Sequential presentation preserved
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
7649 7669 7673 7681 7687 7691 7699 7703 7717 7723
|
||||
7727 7741 7753 7757 7759 7789 7793 7817 7823 7829
|
||||
7841 7853 7867 7873 7877 7879 7883 7901 7907 7919
|
||||
7927 7933 7937 7949 7951 7963 7993 8009 8011 8017
|
||||
8039 8053 8059 8069 8081 8087 8089 8093 8101 8111
|
||||
8117 8123 8147 8161 8167 8171 8179 8191 8209 8219
|
||||
8221 8231 8233 8237 8243 8263 8269 8273 8287 8291
|
||||
8293 8297 8311 8317 8329 8353 8363 8369 8377 8387
|
||||
8389 8419 8423 8429 8431 8443 8447 8461 8467 8501
|
||||
8513 8521 8527 8537 8539 8543 8563 8573 8581 8597
|
||||
8599 8609 8623 8627 8629 8641 8647 8663 8669 8677
|
||||
8681 8689 8693 8699 8707 8713 8719 8731 8737 8741
|
||||
8747 8753 8761 8779 8783 8803 8807 8819 8821 8831
|
||||
8837 8839 8849 8861 8863 8867 8887 8893 8923 8929
|
||||
8933 8941 8951 8963 8969 8971 8999 9001 9007 9011
|
||||
|
||||
[Content continues systematically through remaining prime numbers...]
|
||||
|
||||
APPENDIX NOTES:
|
||||
- Consistent 10-column format maintained
|
||||
- Numbers verified for primality
|
||||
- Professional spacing and layout
|
||||
- Sequential presentation preserved
|
||||
|
||||
[Continuing prime number listing from previous section...]
|
||||
|
||||
9013 9029 9041 9043 9049 9059 9067 9091 9103 9109
|
||||
9127 9133 9137 9151 9157 9161 9173 9181 9187 9199
|
||||
9203 9209 9221 9227 9239 9241 9257 9277 9281 9283
|
||||
9293 9311 9319 9323 9337 9341 9343 9349 9371 9377
|
||||
9391 9397 9403 9413 9419 9421 9431 9433 9437 9439
|
||||
9461 9463 9467 9473 9479 9491 9497 9511 9521 9533
|
||||
9539 9547 9551 9587 9601 9613 9619 9623 9629 9631
|
||||
9643 9649 9661 9677 9679 9689 9697 9719 9721 9733
|
||||
9739 9743 9749 9767 9769 9781 9787 9791 9803 9811
|
||||
9817 9829 9833 9839 9851 9857 9859 9871 9883 9887
|
||||
9901 9907 9923 9929 9931 9941 9949 9967 9973 10007
|
||||
10009 10037 10039 10061 10067 10069 10079 10091 10093 10099
|
||||
10103 10111 10133 10139 10141 10151 10159 10163 10169 10177
|
||||
10181 10193 10211 10223 10243 10247 10253 10259 10267 10271
|
||||
10273 10289 10301 10303 10313 10321 10331 10333 10337 10343
|
||||
|
||||
CONCLUSION
|
||||
This document has provided a comprehensive listing of the first 1000 prime numbers in a structured format. The numbers have been arranged in rows of 10 for easy reference and readability. Each prime number has been computationally verified for accuracy.
|
||||
|
||||
APPENDIX
|
||||
Source Information:
|
||||
- Generated using computational algorithms
|
||||
- Verified through primality testing
|
||||
- Date Generated: [Current Date]
|
||||
- Document Version: 1.0
|
||||
|
||||
Usage Notes:
|
||||
- For reference purposes only
|
||||
- Verify independently for critical applications
|
||||
- Contact technical support for additional information
|
||||
|
||||
END OF DOCUMENT
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
title: AI Generated Document
|
||||
format: docx
|
||||
length: 12551
|
||||
starts_with_brace: False
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_ffa9c80b-55cb-4a8e-8bc2-e89d1063ccf7",
|
||||
"workflowId": "fd3a7e4c-d395-4987-a43a-ff8302ee4266",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759622869.8408577,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_1ecaa93c-3882-48e3-b4ff-1f4e08465595",
|
||||
"workflowId": "fd3a7e4c-d395-4987-a43a-ff8302ee4266",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759622874.7895103,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_50665dd6-a595-43ab-bab7-66a562bc0222",
|
||||
"workflowId": "fd3a7e4c-d395-4987-a43a-ff8302ee4266",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (ai.process)**\n\n✅ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759622891.141656,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_e9cf7e24-c695-4bd5-aabf-fa1f42958345",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
**Action 1/1 (ai.process)**
|
||||
|
||||
✅ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"id": "f51e4c76-a5c7-44b6-b43e-4c13a211516f",
|
||||
"messageId": "msg_50665dd6-a595-43ab-bab7-66a562bc0222",
|
||||
"fileId": "39cf3b09-1ffe-49d2-9968-a884f59f6aa0",
|
||||
"fileName": "ai_result_r0t0a0_133.txt",
|
||||
"fileSize": 859,
|
||||
"mimeType": "text/plain",
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"actionId": "action_e9cf7e24-c695-4bd5-aabf-fa1f42958345"
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_bb563c42-dfe7-4061-9913-b106ff8b5bdd",
|
||||
"workflowId": "fd3a7e4c-d395-4987-a43a-ff8302ee4266",
|
||||
"parentMessageId": null,
|
||||
"message": "Workflow completed.\n\nProcessed 1 user inputs and generated 4 responses.\nWorkflow status: running",
|
||||
"role": "assistant",
|
||||
"status": "last",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759622893.4245453,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "workflow_feedback",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Workflow completed.
|
||||
|
||||
Processed 1 user inputs and generated 4 responses.
|
||||
Workflow status: running
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_f08cfbcd-b146-475b-b7d2-6c6340210760",
|
||||
"workflowId": "fd3a7e4c-d395-4987-a43a-ff8302ee4266",
|
||||
"parentMessageId": null,
|
||||
"message": "🎯 **Task 1/1**\n\n✅ The objective has been fulfilled - a formal email draft has been created with the requested content (rescheduling appointment from 10:00 to Friday), includes file attachment mention, and contains a summary. The email format, recipient, and all required elements are present and properly formatted.\n📊 Score 8/10",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759622893.302553,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_completion",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
🎯 **Task 1/1**
|
||||
|
||||
✅ The objective has been fulfilled - a formal email draft has been created with the requested content (rescheduling appointment from 10:00 to Friday), includes file attachment mention, and contains a summary. The email format, recipient, and all required elements are present and properly formatted.
|
||||
📊 Score 8/10
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_65d921b7-c034-4e67-9d61-8b27113e034e",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759623137.0625856,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_fcc410c3-67ff-4f50-b6b2-2de1973a794f",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759623149.7531114,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_3e1c551a-c9cc-4666-ac5e-44f5531ae1d7",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759623163.5099223,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_e7ebebf3-21cd-41c9-a623-7cf5cd17110c",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 1/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_767fd46d-4a01-4a83-8eae-13e567c6eb24",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 2/1 (outlook.composeAndSendEmail)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\nConnection reference and composed email reference are required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759623176.081393,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 2,
|
||||
"documentsLabel": "round1_task1_action2_results",
|
||||
"actionId": "action_3e5f10ef-df73-4cfb-9f18-a985a7553107",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmail",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 2/1 (outlook.composeAndSendEmail)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
Connection reference and composed email reference are required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_b1b67a6e-de2d-41a8-8031-8201c5e6d9ed",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 3/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759623194.9830098,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 3,
|
||||
"documentsLabel": "round1_task1_action3_results",
|
||||
"actionId": "action_13b33b08-5313-4baf-85f6-72fa58704ffd",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 3/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_39b42434-2f33-4d85-8d75-a7d952811ca8",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 4/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 7,
|
||||
"publishedAt": 1759623215.4080865,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 4,
|
||||
"documentsLabel": "round1_task1_action4_results",
|
||||
"actionId": "action_0450fb3a-b679-4c18-8222-4af008ea1ebd",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 4/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_1e982293-91b2-4281-a956-a5df2354642f",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 5/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 8,
|
||||
"publishedAt": 1759623230.1714125,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 5,
|
||||
"documentsLabel": "round1_task1_action5_results",
|
||||
"actionId": "action_756ed635-5b3a-4bbe-9cc6-f95ada44fee1",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 5/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10am appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_e2070f65-d01f-410b-bc29-37365911a826",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "Workflow completed.\n\nProcessed 1 user inputs and generated 8 responses.\nWorkflow status: running",
|
||||
"role": "assistant",
|
||||
"status": "last",
|
||||
"sequenceNr": 10,
|
||||
"publishedAt": 1759623233.4439967,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "workflow_feedback",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Workflow completed.
|
||||
|
||||
Processed 1 user inputs and generated 8 responses.
|
||||
Workflow status: running
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_be26362c-eead-4eef-bd02-9186f3cec9a9",
|
||||
"workflowId": "307298f9-0546-4f9a-9206-21c4d7c1914e",
|
||||
"parentMessageId": null,
|
||||
"message": "🎯 **Task 1/1**\n\n✅ Need to compose formal email with specific requirements: 1) Reschedule appointment to Friday 10am 2) Attach this file 3) Include summary in email body. No email draft has been created yet.\n📊 Score 8/10",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 9,
|
||||
"publishedAt": 1759623233.252341,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_completion",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
🎯 **Task 1/1**
|
||||
|
||||
✅ Need to compose formal email with specific requirements: 1) Reschedule appointment to Friday 10am 2) Attach this file 3) Include summary in email body. No email draft has been created yet.
|
||||
📊 Score 8/10
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_a1059ab6-fc50-4293-8ee4-4cb971c3a5b6",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759623604.1567802,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_12015763-7c2b-45af-afcb-bfb1e3200cc0",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759623609.2920356,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_e348e746-ceb2-411e-aa9e-a3f915dafd79",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (outlook.composeAndSendEmail)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary\n\nConnection reference and composed email reference are required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759623621.885119,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_b4ba60c4-cde7-4c76-907e-391294a38d35",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmail",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 1/1 (outlook.composeAndSendEmail)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary
|
||||
|
||||
Connection reference and composed email reference are required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_4363439b-75cd-45f6-bbec-60a10ad41387",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 2/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759623634.9731302,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 2,
|
||||
"documentsLabel": "round1_task1_action2_results",
|
||||
"actionId": "action_556df4a2-c07a-4e97-9193-2ebbaa672494",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 2/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_13b7cfe7-1bf3-4128-b7de-4ca90cebd6b5",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 3/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759623649.501099,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 3,
|
||||
"documentsLabel": "round1_task1_action3_results",
|
||||
"actionId": "action_7e0eace7-7a9e-4c26-b2eb-a94f086b5889",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 3/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_a8de1b70-a6ac-4c1e-9c2a-2fcbc2716821",
|
||||
"workflowId": "64cb4501-ae6f-401e-b473-248d0f304e55",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 4/1 (ai.process)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary\n\nAI prompt is required\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 7,
|
||||
"publishedAt": 1759623663.6067572,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 4,
|
||||
"documentsLabel": "round1_task1_action4_results",
|
||||
"actionId": "action_2d6b398c-9227-4dfc-91b1-edbbde98901c",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 4/1 (ai.process)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including specified file attachment and appointment change summary
|
||||
|
||||
AI prompt is required
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_352465fd-58b8-44c9-bb65-9ac435dbb668",
|
||||
"workflowId": "b8da1ea3-eccd-4dee-ba82-f1d2ffe12621",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759623957.7326982,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_ac3f5ded-cc3f-460f-883a-e302d75e8a10",
|
||||
"workflowId": "b8da1ea3-eccd-4dee-ba82-f1d2ffe12621",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759623962.7682924,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_60ad4026-7b17-4beb-b39f-290e8d7fd3d4",
|
||||
"workflowId": "b8da1ea3-eccd-4dee-ba82-f1d2ffe12621",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (ai.process)**\n\n✅ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759623976.8178117,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_c71579e1-56de-405c-a079-d2cb1c293bd3",
|
||||
"actionMethod": "ai",
|
||||
"actionName": "process",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
**Action 1/1 (ai.process)**
|
||||
|
||||
✅ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"id": "fb083d24-36f8-4544-a940-4a1320d595d2",
|
||||
"messageId": "msg_60ad4026-7b17-4beb-b39f-290e8d7fd3d4",
|
||||
"fileId": "ba153afc-0e12-48e6-880a-4e723066bfb2",
|
||||
"fileName": "ai_result_r0t0a0_134.txt",
|
||||
"fileSize": 955,
|
||||
"mimeType": "text/plain",
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"actionId": "action_c71579e1-56de-405c-a079-d2cb1c293bd3"
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_16085073-a3bb-4f96-9877-2b62fc7cb579",
|
||||
"workflowId": "b8da1ea3-eccd-4dee-ba82-f1d2ffe12621",
|
||||
"parentMessageId": null,
|
||||
"message": "Workflow completed.\n\nProcessed 1 user inputs and generated 4 responses.\nWorkflow status: running",
|
||||
"role": "assistant",
|
||||
"status": "last",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759623981.367755,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "workflow_feedback",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Workflow completed.
|
||||
|
||||
Processed 1 user inputs and generated 4 responses.
|
||||
Workflow status: running
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_b75318e7-6948-494d-971b-434809f3a094",
|
||||
"workflowId": "b8da1ea3-eccd-4dee-ba82-f1d2ffe12621",
|
||||
"parentMessageId": null,
|
||||
"message": "🎯 **Task 1/1**\n\n✅ Task completed successfully\n📊 Score 8/10",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759623981.2375298,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_completion",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
🎯 **Task 1/1**
|
||||
|
||||
✅ Task completed successfully
|
||||
📊 Score 8/10
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_831890a3-dda8-453a-a19b-8608c40ad3cd",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759625036.7117429,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_517dc114-ce1c-4dbc-b6de-05dbc8d6618c",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, making sure to include the attachment and a summary.",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759625042.2269123,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, making sure to include the attachment and a summary.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_346c257b-7428-486b-9732-c82684da9a2c",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759625050.6817548,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_9900d227-5af0-4ea3-8fb0-0b515ebb88d2",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 1/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_9c5b0385-8647-4870-9ad7-ffbb8959a36c",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 2/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759625059.9721742,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 2,
|
||||
"documentsLabel": "round1_task1_action2_results",
|
||||
"actionId": "action_578545dd-8d77-4e6f-bf83-6070f03aa77a",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 2/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_451a684c-0497-4b86-9f53-2b07225ef8c7",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 3/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759625069.1750748,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 3,
|
||||
"documentsLabel": "round1_task1_action3_results",
|
||||
"actionId": "action_50f45a96-0f7f-43bf-841a-6541438508bd",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 3/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_29673c33-26f4-43bc-a8ca-5224010e58f3",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 4/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 7,
|
||||
"publishedAt": 1759625078.349944,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 4,
|
||||
"documentsLabel": "round1_task1_action4_results",
|
||||
"actionId": "action_4a3a8696-1b77-470b-9f87-118fe0eb6823",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 4/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_dd4ee677-36f4-482a-8255-f7170dfe97ba",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 5/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 8,
|
||||
"publishedAt": 1759625088.0344517,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 5,
|
||||
"documentsLabel": "round1_task1_action5_results",
|
||||
"actionId": "action_83c47e1d-5ac8-4ff6-affe-d422ed0cd25b",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 5/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including attachment and summary of the attached file
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_4afa8240-566c-4a8f-a832-2cab396e4144",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "Workflow completed.\n\nProcessed 1 user inputs and generated 8 responses.\nWorkflow status: running",
|
||||
"role": "assistant",
|
||||
"status": "last",
|
||||
"sequenceNr": 10,
|
||||
"publishedAt": 1759625089.7135806,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "workflow_feedback",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Workflow completed.
|
||||
|
||||
Processed 1 user inputs and generated 8 responses.
|
||||
Workflow status: running
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_f30d9f5b-f4d9-41c6-a349-18729c78ed5a",
|
||||
"workflowId": "0d37016c-6423-48be-b18b-2b19d2b36eb3",
|
||||
"parentMessageId": null,
|
||||
"message": "🎯 **Task 1/1**\n\n✅ Email task not started yet - need to compose formal email to reschedule appointment and attach file\n📊 Score 8/10",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 9,
|
||||
"publishedAt": 1759625089.5139394,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_completion",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
🎯 **Task 1/1**
|
||||
|
||||
✅ Email task not started yet - need to compose formal email to reschedule appointment and attach file
|
||||
📊 Score 8/10
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_dfee5962-a9c4-43f7-b5b1-517a690dffd0",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.",
|
||||
"role": "user",
|
||||
"status": "first",
|
||||
"sequenceNr": 1,
|
||||
"publishedAt": 1759625317.8185117,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 0,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "round1_task0_action0_context",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Sende eine formelle E-Mail an peter.muster@domain.com von meinem valueon account aus, um meinen Termin von 10 Uhr auf Freitag zu scheiben. lege diese datei im mail als anhang bei und erfasse eine zusammenfasung im mail.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_9ca0090c-c91f-43f8-a9a0-4cb565df1c91",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "🚀 **Task 1/1**\n\n💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 3,
|
||||
"publishedAt": 1759625323.495257,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 0,
|
||||
"documentsLabel": "task_1_start",
|
||||
"actionId": null,
|
||||
"actionMethod": null,
|
||||
"actionName": null,
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
🚀 **Task 1/1**
|
||||
|
||||
💬 I will compose and send a formal email to reschedule your appointment, ensuring all requirements are met including the attachment and summary.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_a817e1bf-c6cd-4e8e-815e-e62ace0c0753",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 1/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 4,
|
||||
"publishedAt": 1759625332.1686268,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 1,
|
||||
"documentsLabel": "round1_task1_action1_results",
|
||||
"actionId": "action_7dd0dfb2-6be5-4003-b343-5a8fd9096e02",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 1/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_f37b998f-2523-4c6a-81b5-1b2f91bdbf7a",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 2/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 5,
|
||||
"publishedAt": 1759625341.6090837,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 2,
|
||||
"documentsLabel": "round1_task1_action2_results",
|
||||
"actionId": "action_78dcd807-5e37-4e6e-a011-98432a9ebaf6",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 2/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_13ce6a34-ee71-4152-a453-5b714470eed5",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 3/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 6,
|
||||
"publishedAt": 1759625351.761903,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 3,
|
||||
"documentsLabel": "round1_task1_action3_results",
|
||||
"actionId": "action_28b3fc09-ed1a-42fa-884e-fbeaa2a73a51",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
**Action 3/1 (outlook.composeAndSendEmailWithContext)**
|
||||
|
||||
❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary
|
||||
|
||||
No valid Microsoft connection found
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"id": "msg_30d89cfa-57f9-4189-a752-162553feda7a",
|
||||
"workflowId": "783b6cb7-838a-440e-8f8e-cf5e4f678f82",
|
||||
"parentMessageId": null,
|
||||
"message": "**Action 4/1 (outlook.composeAndSendEmailWithContext)**\n\n❌ Compose and send formal email from valueon account to peter.muster@domain.com to reschedule 10:00 appointment to Friday, including file attachment and appointment summary\n\nNo valid Microsoft connection found\n\n",
|
||||
"role": "assistant",
|
||||
"status": "step",
|
||||
"sequenceNr": 7,
|
||||
"publishedAt": 1759625362.0207365,
|
||||
"roundNumber": 1,
|
||||
"taskNumber": 1,
|
||||
"actionNumber": 4,
|
||||
"documentsLabel": "round1_task1_action4_results",
|
||||
"actionId": "action_a66f7cc5-bc11-44b1-affe-6dd0828697da",
|
||||
"actionMethod": "outlook",
|
||||
"actionName": "composeAndSendEmailWithContext",
|
||||
"success": null,
|
||||
"documents": []
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue