Repository navigation
MAF Harness and multi slot agent definition - #16
Merged
Merged
Conversation
The store now numbers every message from a counter it owns, so a human-handoff row written from another machine cannot collide with the session's own rows. Every AgentCore table moves into the `agentcore` schema. - Add `call.next_ordinal`. `AppendAsync` takes drafts and returns the rows with their ordinals, numbered in one atomic statement. - Add `ICallStore.AppendMessageAsync(callId, message)` for a host to write one row outside any turn. - `RewriteAsync` finds a row by message id, not by ordinal. - Move `NextOrdinal` from `CallSessionState` to `CallRecord`. - At every turn after the first, the session drains, reads the counter, and re-reads the words only when the counter moved. A failed read raises `CallEventKind.TranscriptResyncFailed` (13) and the turn runs on the words it holds. - Name the `agentcore` schema in every statement. The ledger is now `agentcore.schema_migration`. - Split `PostgresCallStore` into `PostgresCallRows` and `PostgresCallVerification`. Split the three largest test files. BREAKING CHANGE: `ICallStore.AppendAsync` takes a call id and `CallMessageDraft` rows and returns the written rows. `RewriteAsync` takes a message id. `CallSessionState.NextOrdinal` is gone. Every table lives in the `agentcore` schema, so a consumer's `principalSchema` is now `"agentcore"`.
…ss provider states
…eferences - Introduced TurnSources class to handle source references during turns. - Implemented methods to publish and retrieve sources based on outer tool calls. - Updated DrawingAgentDefinition, DrawingData, and PresentTool to use the new Turn namespace. - Added unit tests for TurnSources to ensure correct behavior when publishing and retrieving sources. - Created TurnAmbientsTestScope for managing ambient contexts in tests. - Added TurnContextProviderTests and TurnResultsTests to validate turn context handling and results recording. - Refactored existing tests to align with the new Turn structure.
- Introduced `GraphGuardGate` to handle message routing through guarded edges, ensuring state is available before processing. - Added `GraphStateCarrier` to encapsulate state snapshots for graph runs, facilitating message construction and extraction. - Created `GraphStateEntry` to manage the lifecycle of graph state within workflows, ensuring proper state updates during execution. - Removed `CallStateScope` as it was replaced by the new graph state management approach. - Updated tests to reflect changes in state handling and ensure proper error reporting when state is missing. - Refactored `CallTurnRunner` and `CallTurnStream` to eliminate unnecessary ambient state management, simplifying the execution flow. - Enhanced `GraphStateAgent` to file state snapshots correctly at the start of graph runs, ensuring guards have access to the necessary context.
…ity warnings for validation and identifier generation
…nd Postgres stores
…uilder; refactor related tests to focus on rendering functionality and update naming conventions for clarity.
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.
No description provided.