[Agent] State machine, prompt templates, and known keys #226
Merged
Conversation
Member
aaron-iz
commented
Apr 19, 2026
- AgentStateMachine - FSM with ProcessUserMessage, RequestSubmit, Approve, RequestRevision
- AgentAction enum, GetAllowedActions() per state
- KnownConstraintKeys - valid key catalog with IsValid()
- PromptTemplates - conversation + extraction system prompts (never mixed)
- 32 new tests (64 total) - FSM transitions, allowed actions, prompt content
- 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>
ShalevKk
approved these changes
Apr 20, 2026
Collaborator
|
I see that you implemented some code from previous PR. So just a friendly reminder to remove the duplicated code when you merge the necessary PR. |
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.