feat: add vision core, feishu watchdog, and enhanced system prompts#193
Open
pandyzhou wants to merge 2 commits intolsdefine:mainfrom
Open
feat: add vision core, feishu watchdog, and enhanced system prompts#193pandyzhou wants to merge 2 commits intolsdefine:mainfrom
pandyzhou wants to merge 2 commits intolsdefine:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR brings two related enhancements to the GenericAgent project:
1. Vision Core & Feishu Watchdog (
075dab4)vision_core.py(250 lines): A newask_visionfunction for multimodal vision queries, with image encoding utilities (image_to_data_url,_encode_png_bytes,_build_user_message).feishu_watchdog.py(51 lines): A watchdog process to monitor and auto-restart the Feishu/Lark bot integration, improving service reliability.tests/test_vision_core.py(138 lines): Unit tests covering the vision core functionality.requirements.txt: Project dependencies includingPillow,requests, etc.vision_sop.mdandfsapp.py(connection retry logic, watchdog integration).2. System Prompts Overhaul (
f4b4c95)sys_prompt.txtandsys_prompt_en.txtwith new sections: Personality, Values, Interaction Style, and Coding Guidelines.fsapp.pyfor default LLM selection.Files Changed
vision_core.pyfrontends/feishu_watchdog.pytests/test_vision_core.pyrequirements.txtassets/sys_prompt.txtassets/sys_prompt_en.txtfrontends/fsapp.pymemory/vision_sop.mdStats: +786 / -12 across 8 files