Draft
Conversation
…logies with agents Demonstrates both integration patterns from the wiki: 1. AgentOwnedPStateModule — PState declared via agentTopology.declarePStateStore(), owned by the AgentTopology's internal stream topology, fully read/write from agents. 2. ExternalPStateModule — PState declared on a separate topologies.stream() topology before the AgentTopology is created, accessed read-only by agents via getStore(). Both modules include RecordAgent (depot append) and CountAgent (PState read). Tests verify both strategies produce correct counts end-to-end with InProcessCluster. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…egies Strategy 1 (AgentTopology owns PState): add ResetAgent that calls transform() directly on the PState from within an agent node, proving agents can write it. Strategy 2 (external StreamTopology owns PState): no ResetAgent — agents only call selectOne(), and the test asserts ResetAgent doesn't exist in the module. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…h in Strategy 2 - Rename $$event-counts -> $$eventCounts (camelCase for Java examples) - Strategy 2 ResetAgent now appends to *resetCommands depot; the external stream topology consumes it and zeroes the PState — demonstrating that to modify a PState in another topology you must go through a depot - Strategy 1 ResetAgent still uses direct transform() since AgentTopology owns the PState - Both strategies now have a working ResetAgent with matching test coverage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
to demonstrate the two strategies described at
https://github.com/redplanetlabs/agent-o-rama/wiki/Integrating-with-regular-Rama-modules