Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aaronjmars/MiroShark
/ functions
Functions
3,647 in github.com/aaronjmars/MiroShark
⨍
Functions
3,647
◇
Types & classes
172
↳
Endpoints
175
↓ 1 callers
Method
subscribe
Create a new SSE subscriber. Returns a _Subscriber with a poll() method.
backend/app/utils/event_logger.py:195
↓ 1 callers
Function
swap_random_posts
Swap a percentage of recommended posts with random posts. Args: rec_post_ids (list): List of recommended post IDs. post_ids
backend/wonderwall/social_platform/recsys.py:625
↓ 1 callers
Function
test_amm_pricing
Verify AMM creates correct initial prices.
backend/scripts/test_market_generation.py:79
↓ 1 callers
Function
test_health_endpoint
Test health endpoint (no auth required)
scripts/smoke_test.py:14
↓ 1 callers
Function
test_live_simulation
Run a live 5-round Polymarket-only simulation with pre-seeded markets.
backend/scripts/test_market_generation.py:100
↓ 1 callers
Function
test_market_generation
Test the LLM market generation step independently.
backend/scripts/test_market_generation.py:42
↓ 1 callers
Function
test_openapi_docs
Test OpenAPI docs endpoint (no auth required)
scripts/smoke_test.py:73
↓ 1 callers
Function
test_profile_formats
Test Profile formats
backend/scripts/test_profile_format.py:20
↓ 1 callers
Function
test_protected_api
Test protected API endpoint (requires auth)
scripts/smoke_test.py:29
↓ 1 callers
Method
tick_clock
Advance the simulation clock by one step.
backend/wonderwall/simulations/polymarket/platform.py:431
↓ 1 callers
Method
to_detail_dict
Detailed info including recent actions
backend/app/services/simulation_run_state.py:179
↓ 1 callers
Method
to_dict
Convert to dictionary
backend/app/services/simulation_config_generator.py:197
↓ 1 callers
Method
to_dict
(self)
backend/app/services/simulation_run_state.py:146
↓ 1 callers
Method
to_dict
(self)
backend/app/services/entity_reader.py:22
↓ 1 callers
Method
to_dict
(self)
backend/app/services/simulation_ipc.py:45
↓ 1 callers
Method
to_dict
Full state dictionary (for internal use)
backend/app/services/simulation_manager.py:114
↓ 1 callers
Method
to_dict
Convert to dictionary
backend/app/models/project.py:72
↓ 1 callers
Method
to_episode_text
Convert activity to natural language text description Use natural language description format so NER extractor can extract entities
backend/app/services/graph_memory_updater.py:27
↓ 1 callers
Method
to_markdown
Convert to Markdown format
backend/app/services/report_agent.py:433
↓ 1 callers
Method
to_polymarket_format
Convert to Polymarket prediction market format. Returns a dict compatible with Wonderwall's UserInfo(profile={"other_info": ...}) str
backend/app/services/wonderwall_profile_generator.py:131
↓ 1 callers
Method
to_reddit_system_message
(self)
backend/wonderwall/social_platform/config/user.py:79
↓ 1 callers
Method
to_simple_dict
Simplified state dictionary (for API responses)
backend/app/services/simulation_manager.py:143
↓ 1 callers
Method
to_social_media_prompt
Format market data for injection into Twitter/Reddit agent prompts.
backend/scripts/market_media_bridge.py:29
↓ 1 callers
Method
to_system_message
(self)
backend/wonderwall/social_platform/config/user.py:44
↓ 1 callers
Method
to_text_prompt
r"""Convert the environment to text prompt.
backend/wonderwall/social_agent/agent_environment.py:31
↓ 1 callers
Method
to_trading_prompt
Format sentiment data for injection into Polymarket agent prompts.
backend/scripts/market_media_bridge.py:76
↓ 1 callers
Method
to_twitter_system_message
(self)
backend/wonderwall/social_platform/config/user.py:50
↓ 1 callers
Method
tool_catalogue
Human-readable summary of tools available on the given servers.
backend/scripts/mcp_agent_bridge.py:248
↓ 1 callers
Method
unsubscribe
(self, sub: '_Subscriber')
backend/app/utils/event_logger.py:206
↓ 1 callers
Method
update_from_round
Update beliefs based on what happened in a round. Args: posts_seen: List of posts the agent was shown, each with keys:
backend/wonderwall/social_agent/belief_state.py:79
↓ 1 callers
Method
update_rec_table
Override in subclasses to implement content recommendation.
backend/wonderwall/simulations/base.py:262
↓ 1 callers
Method
update_trust
Update trust toward another agent based on an interaction. Args: other_agent_id: The agent being interacted with. act
backend/wonderwall/social_agent/belief_state.py:170
↓ 1 callers
Function
update_trust_from_actions
Update agent trust based on round actions. Args: belief_states: Dict of agent_id → BeliefState. actions: List of action dicts wit
backend/wonderwall/social_agent/round_analyzer.py:551
↓ 1 callers
Method
validate
Validate required configuration
backend/app/config.py:309
↓ 1 callers
Method
view_portfolio
View your current cash balance and market positions. Returns: dict: Contains 'balance' (USD) and 'positions' (list of holdings).
backend/wonderwall/simulations/polymarket/actions.py:99
↓ 1 callers
Method
wait_for_processing
No-op — processing is synchronous in Neo4j.
backend/app/storage/neo4j_storage.py:492
↓ 1 callers
Function
warn
(msg)
backend/scripts/test_e2e_api.py:82
↓ 1 callers
Function
wrapText
(ctx, text, maxWidth)
frontend/src/utils/chartExport.js:76
Method
__del__
Ensure file handler is closed on destruction
backend/app/services/report_agent.py:407
Method
__enter__
(self)
backend/app/utils/i18n.py:113
Method
__exit__
(self, exc_type, exc, tb)
backend/app/utils/i18n.py:117
Method
__init__
(self, locale: Optional[str])
backend/app/utils/i18n.py:109
Method
__init__
(self)
backend/app/utils/event_logger.py:131
Method
__init__
( self, simulation_id: Optional[str] = None, event_types: Optional[Set[str]] = None,
backend/app/utils/event_logger.py:273
Method
__init__
(self, path: str)
backend/app/utils/event_logger.py:316
Method
__init__
( self, api_key: Optional[str] = None, base_url: Optional[str] = None, model:
backend/app/utils/llm_client.py:133
Method
__init__
( self, model: Optional[str] = None, timeout: float = 300.0 )
backend/app/utils/claude_code_client.py:30
Method
__init__
( self, base_url: Optional[str] = None, timeout: Optional[int] = None, max_ret
backend/app/utils/searxng_client.py:39
Method
__init__
( self, driver, embedding_service: EmbeddingService, llm_client: Optional[LLMC
backend/app/storage/community_builder.py:45
Method
__init__
( self, model_name: Optional[str] = None, enabled: Optional[bool] = None, )
backend/app/storage/reranker_service.py:24
Method
__init__
( self, uri: Optional[str] = None, user: Optional[str] = None, password: Optio
backend/app/storage/neo4j_storage.py:43
Method
__init__
(self, llm_client: Optional[LLMClient] = None)
backend/app/storage/contradiction_detector.py:54
Method
__init__
( self, embedding_service: EmbeddingService, reranker_service: Optional[RerankerServic
backend/app/storage/search_service.py:135
Method
__init__
( self, driver, graph_id: str, report_id: str, simulation_id: Optional
backend/app/storage/reasoning_trace.py:55
Method
__init__
( self, provider: Optional[str] = None, model: Optional[str] = None, base_url:
backend/app/storage/embedding_service.py:26
Method
__init__
(self, llm_client: Optional[LLMClient] = None, max_retries: int = 2)
backend/app/storage/ner_extractor.py:22
Method
__init__
(self, llm_client: Optional[LLMClient] = None)
backend/app/storage/entity_resolver.py:59
Method
__init__
(self)
backend/app/services/web_enrichment.py:73
Method
__init__
( self, api_key: Optional[str] = None, base_url: Optional[str] = None, model_n
backend/app/services/simulation_config_generator.py:246
Method
__init__
(self, max_size: int = 4096)
backend/app/services/_notify_base.py:26
Method
__init__
InitializeUpdatedevice Args: graph_id: GraphID storage: GraphStorage instance (injected)
backend/app/services/graph_memory_updater.py:188
Method
__init__
(self, storage: GraphStorage, llm_client: Optional[LLMClient] = None)
backend/app/services/graph_tools.py:395
Method
__init__
(self, storage: GraphStorage)
backend/app/services/entity_reader.py:67
Method
__init__
( self, api_key: Optional[str] = None, base_url: Optional[str] = None, model_n
backend/app/services/wonderwall_profile_generator.py:271
Method
__init__
(self, llm_client: Optional[LLMClient] = None)
backend/app/services/ontology_generator.py:18
Method
__init__
Initialize IPC client Args: simulation_dir: Simulation data directory
backend/app/services/simulation_ipc.py:98
Method
__init__
(self)
backend/app/services/simulation_manager.py:175
Method
__init__
(self, endpoint: str, api_key: Optional[str])
backend/app/services/oracle_seed.py:59
Method
__init__
Initialize logger Args: report_id: Report ID, used to determine log file path
backend/app/services/report_agent.py:67
Method
__init__
Initialize console logger Args: report_id: Report ID, used to determine log file path
backend/app/services/report_agent.py:338
Method
__init__
Initialize Report Agent Args: graph_id: Graph ID simulation_id: Simulation ID simulation_require
backend/app/services/report_agent.py:1133
Method
__init__
(self, storage: GraphStorage)
backend/app/services/graph_builder.py:38
Method
__init__
Initialize the logger Args: platform: Platform name (twitter/reddit) base_dir: Base path of the simulation d
backend/scripts/action_logger.py:26
Method
__init__
Initialize the log manager Args: simulation_dir: Simulation directory path
backend/scripts/action_logger.py:126
Method
__init__
(self, max_actions_per_agent: int = 15)
backend/scripts/cross_platform_digest.py:64
Method
__init__
( self, llm_client=None, minutes_per_round: int = 60, compact_batch_size: int
backend/scripts/round_memory.py:175
Method
__init__
(self, simulation_dir: str, env, agent_graph)
backend/scripts/run_twitter_simulation.py:157
Method
__init__
Initialize simulation runner Args: config_path: Configuration file path (simulation_config.json) wait_for_co
backend/scripts/run_twitter_simulation.py:406
Method
__init__
(self, name: str, command: str, args: List[str], env: Dict[str, str])
backend/scripts/mcp_agent_bridge.py:101
Method
__init__
(self, registry: Dict[str, Any])
backend/scripts/mcp_agent_bridge.py:221
Method
__init__
( self, simulation_dir: str, twitter_env=None, twitter_agent_graph=None,
backend/scripts/run_parallel_simulation.py:297
Method
__init__
(self)
backend/scripts/run_parallel_simulation.py:1301
Method
__init__
(self, config: Dict[str, Any], simulation_dir: str, platform: str)
backend/scripts/belief_integration.py:121
Method
__init__
(self, simulation_dir: str, env, agent_graph)
backend/scripts/run_reddit_simulation.py:167
Method
__init__
Initialize the simulation runner Args: config_path: Configuration file path (simulation_config.json) wait_fo
backend/scripts/run_reddit_simulation.py:423
Method
__init__
(self)
backend/scripts/market_media_bridge.py:148
Method
__init__
( self, sim_id: str, *, is_public: bool = True, created_at: str = "202
backend/tests/test_unit_feed.py:93
Method
__init__
(self, mapping, raise_on)
backend/tests/test_unit_i18n.py:82
Method
__init__
(self)
backend/tests/test_unit_graph_tools_locale.py:29
Method
__init__
(self, content: str)
backend/tests/test_unit_mcp_bridge.py:18
Method
__init__
(self, content: str = "")
backend/tests/test_unit_mcp_bridge.py:23
Method
__init__
(self, value: str)
backend/tests/test_unit_sitemap.py:94
Method
__init__
( self, sim_id: str, *, is_public: bool = True, status: str = "complet
backend/tests/test_unit_sitemap.py:101
Method
__init__
(self, *a, **kw)
backend/tests/test_unit_oracle_seed.py:36
Method
__init__
(self, *a, **kw)
backend/tests/test_unit_oracle_seed.py:50
Method
__init__
( self, sim_id: str, *, is_public: bool = True, created_at: str = "202
backend/tests/test_unit_feed_filters.py:110
Method
__init__
(self, agent_id: int, user_info: UserInfo, user_info_templa
backend/wonderwall/social_agent/agent.py:65
Method
__init__
(self, action: SocialAction)
backend/wonderwall/social_agent/agent_environment.py:58
Method
__init__
(self, nei4j_config: Neo4jConfig)
backend/wonderwall/social_agent/agent_graph.py:27
Method
__init__
( self, backend: Literal["igraph", "neo4j"] = "igraph", neo4j_config: Neo4jConfig | No
backend/wonderwall/social_agent/agent_graph.py:178
← previous
next →
1,401–1,500 of 3,647, ranked by callers