
2025-06-07 19:29:02,628 - __main__ - INFO - Agent processing user query
2025-06-07 19:29:02,633 - __main__ - INFO - agent question:content='张三九的健康报告' additional_kwargs={} response_metadata={} id='2c017d86-ea89-4811-9d2f-2b1c78002726'
2025-06-07 19:29:04,906 - httpx - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 400 Bad Request"
2025-06-07 19:29:05,321 - __main__ - ERROR - Error in store_memory: Error code: 400 - {'error': {'code': 'InvalidParameter', 'param': None, 'message': 'contents is neither str nor list of str.: payload.input.contents', 'type': 'InvalidParameter'}, 'id': 'c04551cc-2ae4-948e-9e54-6e5dea500d58', 'request_id': 'c04551cc-2ae4-948e-9e54-6e5dea500d58'}
2025-06-07 19:29:05,471 - __main__ - INFO - Loading and caching prompt template from prompts/prompt_template_agent.txt
2025-06-07 19:29:08,207 - httpx - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
2025-06-07 19:29:08,732 - __main__ - INFO - Calling tool: retrieve
2025-06-07 19:29:08,874 - httpx - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 400 Bad Request"
2025-06-07 19:29:08,985 - __main__ - INFO - Tool retrieve routed to grade_documents based on config
Tool Output [retrieve]: Error: BadRequestError("Error code: 400 - {'error': {'code': 'InvalidParameter', 'param': None, 'message': 'contents is neither str nor list of str.: payload.input.contents', 'type': 'InvalidParameter'}, 'id': 'db718195-d81d-9282-aebc-c3f8295b194c', 'request_id': 'db718195-d81d-9282-aebc-c3f8295b194c'}")
Please fix your mistakes.