[Agent] LLM-powered constraint extraction#228
Merged
Conversation
- Create Chronos.Agent class library (net8.0) + Chronos.Tests.Agent - Add AgentState enum, ChatMessage record - Add ConstraintDraft (mutable) and ConstraintProposal (immutable) - Add ConversationSession with guarded state transitions - Add IConversationStore + InMemoryConversationStore - 24 unit tests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add ILlmAdapter polymorphic interface with CancellationToken support - Add LlmResponse and LlmOptions records - Add OllamaLlmAdapter (university API, JSON mode support) - Add PuterLlmAdapter (free AI API, isolated DTOs) - Add OllamaOptions + PuterOptions configuration classes - 8 new tests (32 total) with HTTP wire contract verification Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add AgentStateMachine with FSM transitions and AgentAction enum - Add KnownConstraintKeys catalog with IsValid() check - Add PromptTemplates (conversation + extraction system prompts) - 32 new tests (64 total) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add ConstraintExtractor (LLM JSON extraction into ConstraintDraft) - Add ExtractionException for malformed LLM output - Filters invalid keys against KnownConstraintKeys - 6 new tests (70 total) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
noamarg
requested changes
Apr 23, 2026
Collaborator
noamarg
left a comment
There was a problem hiding this comment.
Written Professionally. Fix or confirm if the minor request is even valid, and if so then I will confirm.
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.
YOU MAY IGNORE TESTS AND .MD FILES