Skip to content

Dev#69

Merged
dcloud347 merged 8 commits intomainfrom
dev
Jun 9, 2025
Merged

Dev#69
dcloud347 merged 8 commits intomainfrom
dev

Conversation

@dcloud347
Copy link
Contributor

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:

  • Added a new environment variable PROMETHEUS_MAX_TOKENS with a value of 64000 in example.env to configure token limits. ([example.envR20](https://github.com/EuniAI/Prometheus/pull/69/files#diff-a714eca19b6f8db4dbfbd978aa5325b98cc0550fe4c1e7953e8b1eb136cb925aR20))
  • Enhanced logging in prometheus/app/main.py to include the MAX_TOKENS setting for better traceability. ([prometheus/app/main.pyR29](https://github.com/EuniAI/Prometheus/pull/69/files#diff-e67ba82af17caf4c98bb561da6169e73e85034fcbe3dc2833801c80c04857362R29))

Documentation Improvements:

  • Added detailed docstrings to the answer_issue method in both prometheus/app/services/issue_service.py and prometheus/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))
  • Documented the IssueGraph class and its methods in prometheus/lang_graph/graphs/issue_graph.py to 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:

  • Added comments in prometheus/lang_graph/graphs/issue_graph.py to 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))
  • Improved error handling in prometheus/app/services/issue_service.py by raising a ValueError for unknown issue types. ([prometheus/app/services/issue_service.pyL87-R121](https://github.com/EuniAI/Prometheus/pull/69/files#diff-aba880a87629af94a6be4d747067233e48e91740fb45bfa0bc5f15206e8dd4d2L87-R121))

KnowledgeGraph Tool Initialization:

  • Expanded the _init_tools method in prometheus/lang_graph/nodes/context_provider_node.py with 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.

@dcloud347 dcloud347 merged commit f554ea2 into main Jun 9, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant