Conversation
- Added new ASP module for clingo integration, including model management and error handling. - Implemented basic templates for ASP rules and facts generation. - Introduced test setup for validating ASP functionality. - Updated pyproject.toml to include clingo as a dependency and added a new script for test setup.
- Added instructions and review prompts for ASP usage. - Implemented a custom exception for model validation errors. - Enhanced the ASPModelManager with incremental validation for adding, deleting, and replacing items. - Updated test setup to verify ASP mode installation and functionality, including configuration checks and clingo dependency validation. - Improved basic templates for generating ASP facts and rules.
- Updated the ASP module to include a docstring for clarity. - Integrated ASPModelManager into the server logic for handling ASP mode. - Added conditional logging for ASP mode usage in the server. - Updated mode folder handling to include ASP.
- Updated the ASP instructions to provide a comprehensive quick start guide, detailing model structure, operations, and best practices. - Enhanced the ASP solution review template to include structured guidelines for evaluating correctness and optimality. - Added ASP-related commands in the server to support model management, including item addition, deletion, and fetching current content.
- Introduced ASP problem directory and updated test configuration to include ASP-related paths. - Enhanced the unified test runner documentation to reflect ASP integration. - Added ASP-specific solver configuration for handling commands and results. - Created a new example problem for ASP to demonstrate usage and expected output.
- Included mcp-solver-asp in the pyproject.toml to support the new ASP solver integration.
- Introduced ASP as a new solver mode in the client configuration. - Updated argument parsing to include ASP mode in the command line options. - Enhanced server logic to handle ASP mode, including logging and description retrieval. - Modified test setup to recognize ASP as a valid solver type.
- Introduced a new markdown file detailing the simple path coloring problem for ASP. - Included problem description, ASP encoding, and expected output format to aid in understanding and testing.
… coloring example - Revised the problem description for clarity.
- Updated INSTALL.md to include Groq as a supported platform with its corresponding API key. - Modified client.py to recognize Groq in the model code argument parsing. - Enhanced llm_factory.py to integrate ChatGroq for model handling. - Updated test_setup.py to include langchain_groq as a dependency in the test environment. - Added necessary changes to pyproject.toml to include langchain-groq as a required package.
- Updated README.md to include usage instructions for the new ASP mode in the run-test command.
- Removed clingo from the main dependencies and added it to a new optional 'asp' section in pyproject.toml. - Updated the README.md to include detailed information about the new ASP mode, its features, and usage instructions.
- Updated version in pyproject.toml to 3.4.0. - Added new features to CHANGELOG, including full integration of Answer Set Programming (ASP) via clingo API and Groq LLM provider integration.
- Added "asp" to the PromptMode type definition in prompt_loader.py. - Updated test_setup.py to include ASP prompts for testing. - Created a new markdown file for the University Course Scheduling problem in ASP format. - Revised the simple path coloring problem description for clarity.
|
Hello @szeider, I’ve submitted a pull request with some proposed changes related to your paper. I’d appreciate it if you could take a look when you have the time. Thank you! |
- Added a new error handling module for ASP, providing structured error reporting and context-aware messages. - Integrated enhanced error handling into the ASPModelManager for improved validation and solving processes. - Introduced a solution module to standardize the extraction and formatting of ASP solver results. - Updated installation documentation to include the new ASP setup command. - Expanded test coverage for ASP error handling and model management functionalities.
…el accuracy ASP instructions
Pull Request #7 Change RequestThank you for this excellent contribution adding ASP/Clingo support! The integration is well-architected and follows the existing patterns nicely. Before merging, please address the following items: Required Changes
Notes
Thanks again for this valuable contribution to the project! |
Applied automatic formatting to the codebase using `uv run ruff format .` No functional changes were made, only style adjustments.
- Removed references to Groq from CHANGELOG, INSTALL.md, and README.md. - Updated client.py and llm_factory.py to exclude Groq from supported platforms and model handling. - Adjusted dependencies in pyproject.toml and test_setup.py to eliminate langchain_groq.
- Added a "status" key to the error response in format_solution_error for clarity. - Introduced a "success" flag in the solution export process to ensure consistent server communication.
- Added critical index stability guidelines for error handling in ASP instructions. - Introduced new problem scenarios for ASP, including birds' flight capabilities, company control relationships, package status contradictions, party invitations, shift assignments, and a trivial test case. - Removed the outdated simple path coloring problem and university course scheduling scenario from the test suite.
Overview
This PR introduces two major enhancements to the MCP Solver framework:
These changes expand the solver’s capabilities, improve flexibility for end-users, and modernize the LLM integration layer.
1. ASP/Clingo Integration
Added a dedicated asp module under src/mcp_solver/asp/ for handling ASP-based problem solving.
Implemented Clingo as the primary ASP solver, including environment setup, model management, real-time syntax and grounding validation, and solution extraction.
Added test setups and example problems for ASP in the tests/problems/asp/ directory.
2. Groq LLM Provider Integration
Extended the LLM factory to support Groq as an additional provider, alongside existing options.
Additional Notes
Updated relevant documentation and instructions for both ASP/Clingo and Groq integration.
All existing solvers and LLM providers remain supported; these changes are additive.
New and updated tests ensure coverage for the new features.