Open
Conversation
added 2 commits
January 22, 2025 20:26
…ut format in risk_analyzer and pattern_extraction
…d critic agent to use new LLM client. Fixed some minor problems in prompt and dataloader. Ran main succesfully and got good logs.
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.
改了 LLM 配置,更加 modularized, configurable,后续会把本地运行模型的配置也加进去,然后还想把 agent 的模型配置提到 main 函数统一配置后再传参给 class。
同时,OpenAI model 使用了 response_format来规定 API 返回格式,避免了很多麻烦,也让 agent 更 robust。按照不同agent 需要的不同输出格式去设计pydantic class, 保证返回对象符合要求格式。
配置了 logging,充分观察每一个 agent 行为以及迭代过程。
优化了 dataloader, prompt,以及代码架构,使得项目可构建。