Skip to content

[Agent] State machine, prompt templates, and known keys #226

Merged
aaron-iz merged 4 commits into
mainfrom
feature/aaroni/52/step-c-fsm-and-prompts
Apr 23, 2026
Merged

[Agent] State machine, prompt templates, and known keys #226
aaron-iz merged 4 commits into
mainfrom
feature/aaroni/52/step-c-fsm-and-prompts

Conversation

@aaron-iz
Copy link
Copy Markdown
Member

  • 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

aaron-iz and others added 4 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>
@aaron-iz aaron-iz self-assigned this Apr 19, 2026
@ShalevKk
Copy link
Copy Markdown
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.

@aaron-iz aaron-iz merged commit 8219b43 into main Apr 23, 2026
1 check passed
@aaron-iz aaron-iz deleted the feature/aaroni/52/step-c-fsm-and-prompts branch April 23, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants