Skip to content

Finalize All Error Messages and OOD Messages #311

@nuwangeek

Description

@nuwangeek

Description

Define and finalize all error messages and out-of-domain (OOD) messages that should be sent to users across all workflows. Messages must be localized for Estonian (et) and English (en).

Message Categories

Service Workflow Errors

  • SERVICE_NOT_FOUND_MESSAGES: No matching service found
  • SERVICE_VALIDATION_FAILED_MESSAGES: Service exists but not active
  • SERVICE_TIMEOUT_ERROR_MESSAGES: Service call timeout (>10s)
  • SERVICE_EXECUTION_ERROR_MESSAGES: Service returned error
  • ENTITY_EXTRACTION_FAILED_MESSAGES: LLM couldn't extract entities

Context Workflow Errors

  • INSUFFICIENT_CONTEXT_MESSAGES: Query references history but no clear answer
  • NO_CONTEXT_AVAILABLE_MESSAGES: No conversation history available

Greeting Messages

  • GREETING_HELLO_MESSAGES: Response to hello/hi
  • GREETING_GOODBYE_MESSAGES: Response to goodbye/bye
  • GREETING_THANKS_MESSAGES: Response to thank you
  • GREETING_CASUAL_MESSAGES: Response to casual greetings

OOD Messages (Existing - Verify Reuse)

  • OUT_OF_SCOPE_MESSAGE: Query cannot be handled by any workflow
  • TECHNICAL_ISSUE_MESSAGE: System error occurred
  • INPUT_GUARDRAIL_VIOLATION_MESSAGE: Input blocked by guardrails
  • OUTPUT_GUARDRAIL_VIOLATION_MESSAGE: Output blocked by guardrails

Acceptance Criteria

  • Define all error messages in src/llm_orchestrator_config/llm_ochestrator_constants.py
  • Ensure all messages have Estonian (et) and English (en) translations
  • Add helper function get_localized_message(message_dict, language)
  • Review messages with product/UX team
  • Update specification document with final messages
  • Add message usage examples in code comments

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions