Skip to content

[Agent] LLM-powered constraint extraction#228

Merged
aaron-iz merged 5 commits into
mainfrom
feature/aaroni/52/step-d-constraint-extraction
Apr 23, 2026
Merged

[Agent] LLM-powered constraint extraction#228
aaron-iz merged 5 commits into
mainfrom
feature/aaroni/52/step-d-constraint-extraction

Conversation

@aaron-iz
Copy link
Copy Markdown
Member

@aaron-iz aaron-iz commented Apr 23, 2026

YOU MAY IGNORE TESTS AND .MD FILES

  • ConstraintExtractor - calls LLM with extraction prompt + JSON mode, parses response, validates keys
  • ExtractionException for malformed LLM output
  • 6 new tests (70 total) - JSON parsing, invalid key filtering

aaron-iz and others added 5 commits April 17, 2026 11:25
- 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>
Copy link
Copy Markdown
Collaborator

@noamarg noamarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Written Professionally. Fix or confirm if the minor request is even valid, and if so then I will confirm.

Comment thread Chronos.sln
@noamarg noamarg self-requested a review April 23, 2026 19:12
Copy link
Copy Markdown
Collaborator

@noamarg noamarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Way to go!

@aaron-iz aaron-iz merged commit 1b34d4d into main Apr 23, 2026
1 check passed
@aaron-iz aaron-iz deleted the feature/aaroni/52/step-d-constraint-extraction branch April 23, 2026 21:11
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.

2 participants