Files
masa-agent/template/parsing_error.py
abnerhexu 0410fbf4bc modified: llm_settings.json
modified:   template/agent_prompt.py
	modified:   template/parsing_error.py
2026-01-20 15:55:11 +08:00

20 lines
658 B
Python

"""
Parsing Error Template
This template defines the error message shown to the LLM when it produces
invalid JSON in the Action Input field.
"""
PARSING_ERROR_TEMPLATE = """Parsing error: {error}
REMINDER - Action Input must be valid JSON:
- Use double quotes for keys and string values
- Use curly braces: {{}}
- For no parameters: {{}}
- For one parameter: {{"drone_id": "drone-001"}}
- For multiple parameters: {{"drone_id": "drone-001", "altitude": 15.0}}
- Numbers WITHOUT quotes, strings WITH quotes
- We put your answer to langchain, so if you want to return {{ or }}, return double of the characters.
Please try again with proper JSON format."""