Conversation
…y and service_coordinator.py
…mprove state handling logic
…bug_subgraph.py for clarity and improved understanding of workflow phases
… improved clarity and functionality
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.
This pull request introduces enhancements to logging, documentation, and the initialization of tools in the Prometheus project. The changes include adding new environment variables, improving function documentation, adding comments to clarify workflows, and expanding the set of tools for KnowledgeGraph traversal. Below are the key changes grouped by theme:
Environment and Logging Enhancements:
PROMETHEUS_MAX_TOKENSwith a value of64000inexample.envto configure token limits. ([example.envR20](https://github.com/EuniAI/Prometheus/pull/69/files#diff-a714eca19b6f8db4dbfbd978aa5325b98cc0550fe4c1e7953e8b1eb136cb925aR20))prometheus/app/main.pyto include theMAX_TOKENSsetting for better traceability. ([prometheus/app/main.pyR29](https://github.com/EuniAI/Prometheus/pull/69/files#diff-e67ba82af17caf4c98bb561da6169e73e85034fcbe3dc2833801c80c04857362R29))Documentation Improvements:
answer_issuemethod in bothprometheus/app/services/issue_service.pyandprometheus/app/services/service_coordinator.py, describing arguments, return values, and functionality. ([[1]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-aba880a87629af94a6be4d747067233e48e91740fb45bfa0bc5f15206e8dd4d2R43-R67),[[2]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-825a65070e014da06d13b119e08520aea3bf43107e4bd62b2cda10f704767f47R93-R120))IssueGraphclass and its methods inprometheus/lang_graph/graphs/issue_graph.pyto explain its purpose and workflow. ([[1]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-2a0a47f7c25dcffb37ed6e8a31ea98f272d11d657890d086aa63cb6ec86d2693R19-R25),[[2]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-2a0a47f7c25dcffb37ed6e8a31ea98f272d11d657890d086aa63cb6ec86d2693R107-R109))Workflow Clarifications:
prometheus/lang_graph/graphs/issue_graph.pyto clarify the state graph workflow, including node initialization, edge definitions, and workflow entry points. ([[1]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-2a0a47f7c25dcffb37ed6e8a31ea98f272d11d657890d086aa63cb6ec86d2693R40-R42),[[2]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-2a0a47f7c25dcffb37ed6e8a31ea98f272d11d657890d086aa63cb6ec86d2693L51-R69),[[3]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-2a0a47f7c25dcffb37ed6e8a31ea98f272d11d657890d086aa63cb6ec86d2693R92))prometheus/app/services/issue_service.pyby raising aValueErrorfor unknown issue types. ([prometheus/app/services/issue_service.pyL87-R121](https://github.com/EuniAI/Prometheus/pull/69/files#diff-aba880a87629af94a6be4d747067233e48e91740fb45bfa0bc5f15206e8dd4d2L87-R121))KnowledgeGraph Tool Initialization:
_init_toolsmethod inprometheus/lang_graph/nodes/context_provider_node.pywith detailed comments and new tools for file search, AST node search, text/document search, and file preview/reading operations. ([[1]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-955607f309c046f854b72ca17d14ee1d2084860c5605e235511b8328b0a82f61L123-R134),[[2]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-955607f309c046f854b72ca17d14ee1d2084860c5605e235511b8328b0a82f61R149-R150),[[3]](https://github.com/EuniAI/Prometheus/pull/69/files#diff-955607f309c046f854b72ca17d14ee1d2084860c5605e235511b8328b0a82f61R276-R278))These changes collectively enhance the maintainability, clarity, and functionality of the codebase.