Files
ds_drone_bot/api/routes/__pycache__/chat.cpython-311.pyc
T

73 lines
6.1 KiB
Plaintext
Raw Normal View History

2025-07-24 14:27:56 +01:00
§
2025-08-15 17:46:05 +01:00
`bŸhãóVddlmZmZmZddlmZmZmZddlm Z m
2025-07-24 14:27:56 +01:00
Z
2025-08-12 19:32:39 +01:00
ddl m Z ddl
mZmZddlmZddlZddlmZed d
2025-08-15 17:36:39 +01:00
g¬ ¦«Ze d e ¬
¦«ee ¦«fdedefd¦«Ze de
¬
¦«ee ¦«fdedefd¦«ZdS)é)Ú APIRouterÚDependsÚ
HTTPException)Ú ChatRequestÚ ChatMessageÚ
SurveyRequest)Ú ChatResponseÚSurveyAgentResponse)Ú get_api_key)ÚDroneBotÚMessage)ÚDroneAssessmentAgentN)Úloggerz/chatÚchat)ÚprefixÚtagsz/booking-assistant)Úresponse_modelÚrequestÚ_cƒó\K tjd|j¦«tjdt|j¦«¦«|j}|r7tjdt
| ¦«¦«¦«ntjd¦«d|jD¦«}tjdt|¦«d¦«tjd¦«t|d |¬
¦«}tjd ¦«tjd ¦«|  |j¦«}tjd
|¦«|rd|vr(tj
d|¦«tdd¬¦«|d}tjd|¦«|rt|t¦«s8tj
dt|¦«d|¦«tdd¬¦« tjd¦«tj|¦«}tjd¦«nf#tj$rT}tjd|¦«tjd|¦«|dddidœ}tjd¦«Yd}~nd}~wwxYwtjd |¦«t'd!|¬"¦«S#t$rtj
d#¦«t($rI} tj
2025-08-12 19:32:39 +01:00
d$t| ¦«d ¬%¦«tdt| ¦«¬¦«d} ~ wwxYw)&ú+Chat with DroneBot using query and history.z"Starting chat request with query: zHistory length: zCustomer metadata provided: zNo customer metadata providedcóDg|]}t|j|j¬¦«ŒS))ÚroleÚcontent)r
rr)Ú.0Úmsgs úC/Users/macbook/Desktop/blessing_ai/mkd/drone_bot/api/routes/chat.pyú
2025-07-24 14:27:56 +01:00
<listcomp>zchat_ai.<locals>.<listcomp>"s)ÐZÀ3•7 ¤°#´z&Converted history to internal format: z messageszInitializing DroneBot...T)ÚhistoryÚuse_openai_as_fallbackÚcustomer_metadataz!DroneBot initialized successfullyzCalling DroneBot.chat()...zDroneBot response received: Ú
final_messagezInvalid result from DroneBot: éôz5Invalid response from DroneBot: missing final_message©Ú status_codeÚdetailzFinal message extracted: z%Final message is not a valid string: z - zCInvalid response from DroneBot: final_message is not a valid stringz,Attempting to parse final_message as JSON...zJSON parsing successfulzJSON decode error: zRaw final_message: NFÚ in_progress)ÚmessageÚoptionsÚrequires_selectionÚendÚformz"Created fallback message structurezFinal message to return: Úsuccess)Ústatusr)zRe-raising HTTPExceptionzUnexpected error in chat_ai: )Úexc_info)rÚinfoÚqueryÚlenr r"ÚlistÚkeysr rÚerrorrÚ
isinstanceÚstrÚtypeÚjsonÚloadsÚJSONDecodeErrorÚwarningr Ú Exception)
2025-08-12 19:32:39 +01:00
rrr"r ÚbotÚresultr#r)Ú
json_errorÚes
rÚchat_airCèèð I
ÝŒ мЌ Ð=¥s¨7¬?Ñ';Ô';ÐØ ð ŒKÐWµtÐ<M×<RÒ<RÑ<TÔ<TÑ7UÔ7UÐ ŒKÐ [ÐZÈ'Ì/ÐÝŒ ÐT½SÀ¹\¼\Ð Œ Иw¸tÐWhÐÝŒ Ð Œ И'œ-ÑÝŒ Ð;°6Ðð ˜°Ð ŒLÐB¸ ØØñôð
2025-07-24 14:27:56 +01:00
ð
˜Ô/ˆ
ÝŒ Ð
2025-08-12 19:32:39 +01:00
Ðð ¥J¨}½cÑ$BÔ$Bð Ý ŒLÐÀmÑATÔATÐhÐYfÐ ØØñôð
2025-08-15 17:36:39 +01:00
ð
 ŒKÐ ”j Ñ/ˆGÝ ŒKÐ 2øÝÔ ŒNÐÐ ŒNÐÐ Ø&+Øð ðˆ
ŒKÐ =øøøøð >øøøõ Œ ÐÐØØð
ñ
ô
2025-08-12 15:57:07 +01:00
ð
øõ ðððÝŒ Ð
Ý ð
ð
ð
ÝŒ Ð=µS¸±V´VÐÐØÝq‘6”6ð
ñ
ô
ð
øøøøð
øøøsD„G*J:Ç/<H,È+J:È,JÈ;A
J
2025-08-12 15:57:07 +01:00
ÊJ:Ê
2025-08-12 19:32:39 +01:00
JÊ*J:Ê:(L+Ë"AL&Ì&L+z/analyse-surveycƒóêK |j}t¦«}| |¦«ƒd{V}td|¬¦«S#t$r#}t dt
2025-08-15 17:36:39 +01:00
|¦«¬¦«d}~wwxYw)rNr.)r/r@r$r%)Úbooking_form_inputrÚrunr
2025-07-24 14:27:56 +01:00
r>rr8)rrrEÚagentr@rBs rÚrun_survey_agentrHbèèð

Øå&ˆØ—yyÐ!3Ñ4ˆÝØð
ñ
2025-08-15 17:36:39 +01:00
ô
ð
øõ ð
2025-07-24 14:27:56 +01:00
ð
2025-08-15 17:36:39 +01:00
ð
ÝØÝq‘6”6ð
ñ
ô
ð
2025-08-12 15:57:07 +01:00
øøøøð
øøøs„AAÁ
A2ÁA-Á-A2)ÚfastapirrrÚapi.models.requestsrrrÚapi.models.responsesr r
2025-08-12 15:57:07 +01:00
Úapi.dependencies.authr Úsrc.llm.orchestratorr r
Úsrc.llm.agent.flight_assesmentrr:rÚrouterÚpostr8rCrH©rrú<module>rRsðð ØÐÐÐÐÐØ ˆØ Ø
ˆð
ñ
ô
ð
2025-08-12 19:32:39 +01:00
Ð