MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

Functionget_agent_interview_transcript
Retrieve the saved interview transcript for an agent. Returns the full list of Q&A pairs previously saved for this agent, or an empty tr
backend/app/api/simulation.py:10273
Functionget_agent_log
Get Report Agent's detailed execution log Retrieve each step of action during report generation in real-time, including: - Report start,
backend/app/api/report.py:646
Functionget_agent_sparklines
Per-agent belief sparklines for a published simulation. The agent-level companion to the aggregate surfaces. ``chart.svg`` and the embed-summ
backend/app/api/simulation.py:6231
Functionget_agent_stats
Get statistics for each agent For frontend agent activity ranking, action distribution, etc.
backend/app/api/simulation.py:3672
Functionget_agents_json
Agent roster / persona export for a published simulation. The participants surface. Every prior share endpoint describes what the swarm concl
backend/app/api/simulation.py:6137
Methodget_all_edges
(self, graph_id: str)
backend/app/storage/neo4j_storage.py:572
Methodget_all_edges
Get all edges in a graph.
backend/app/storage/graph_storage.py:86
Methodget_all_nodes
(self, graph_id: str, limit: int = 2000)
backend/app/storage/neo4j_storage.py:506
Methodget_all_nodes
Get all nodes in a graph (with optional limit).
backend/app/storage/graph_storage.py:68
Functionget_all_schema_queries
All schema queries to run on startup.
backend/app/storage/neo4j_schema.py:126
Functionget_archive_zip
Bundle every published share surface into a single ZIP download. The twelfth share surface — the compositional one. A researcher finishing a
backend/app/api/simulation.py:6613
Functionget_belief_drift
Compute per-round belief distribution from the simulation's trajectory.json. Returns bullish/neutral/bearish agent percentages per round, th
backend/app/api/simulation.py:3845
Functionget_chart_svg
Per-round belief trajectory rendered as a stdlib SVG. Scalable-vector companion to the share card (PNG verdict), replay GIF (motion), and Jup
backend/app/api/simulation.py:5447
Functionget_cite_bib
Return a one-call BibTeX ``@misc{…}`` entry for a published sim. Closes the academic citation arc. The reproduce.json blob (PR #79) carries e
backend/app/api/simulation.py:6477
Functionget_clone_json
Clone payload for a published simulation — the *inputs* surface. Every other share surface returns *outputs* — direction, chart, badge, traje
backend/app/api/simulation.py:6048
Functionget_console_log
Get Report Agent's console output log Retrieve console output (INFO, WARNING, etc.) during report generation in real-time. This differs
backend/app/api/report.py:741
Functionget_cost_json
Estimated cost breakdown for a published simulation — the "$1 to simulate anything" claim, made queryable per run. Every analytics surface so
backend/app/api/simulation.py:5966
Functionget_counterfactual_drift
Recompute belief drift with a subset of agents excluded ("What If?" analysis). Query params: exclude_agents: comma-separated agent u
backend/app/api/simulation.py:4047
Functionget_country
Return the full filter schema for one country — geography values, groups, filter fields, agent caps. Used by the cohort selector UI.
backend/app/api/countries.py:35
Methodget_default_reddit_actions
(cls)
backend/wonderwall/social_platform/typing.py:63
Methodget_default_twitter_actions
(cls)
backend/wonderwall/social_platform/typing.py:52
Functionget_demographic_breakdown
Cross-tab agent demographics (age range, gender, country, archetype, primary platform) against final stance, stance volatility, and influence
backend/app/api/simulation.py:11115
Functionget_director_events
Get all director events (injected + pending) for a simulation. Returns: { "success": true, "events": [ ... ]
backend/app/api/simulation.py:10575
Functionget_dkg_citation
Return the persisted DKG citation for a published simulation. Pure read of ``<sim_dir>/dkg-citation.json``. Returns 404 when the sim has neve
backend/app/api/simulation.py:7434
Functionget_ecosystem_catalog
Return the full ecosystem catalog as JSON. Machine-readable counterpart of ``ECOSYSTEM.md`` — every external project, agent, and product publ
backend/app/api/surfaces.py:146
Methodget_edges
(self)
backend/wonderwall/social_agent/agent_graph.py:242
Functionget_embed_summary
Return a minimal summary for rendering the embeddable widget. Bundles only the fields the embed iframe needs — scenario, round counts, a
backend/app/api/simulation.py:5074
Functionget_entities_by_type
Get all entities of a specified type
backend/app/api/simulation.py:1345
Methodget_entities_by_type
Get entities by type
backend/app/services/graph_tools.py:765
Functionget_entity_detail
Get detailed information for a single entity
backend/app/api/simulation.py:1314
Functionget_env_status
Get simulation environment status Check if simulation environment is alive (can receive interview commands) Request (JSON): {
backend/app/api/simulation.py:8827
Functionget_events
Return paginated events from JSONL file.
backend/app/api/observability.py:129
Functionget_filter_schema
Return parquet-introspected filter options for the cohort selector. Triggers a one-time download of the country's Nemotron snapshot if not ye
backend/app/api/countries.py:64
Functionget_frame_metadata
Return Farcaster Frame v2 metadata for a published simulation. Closes the Base-chain audience gap: $MIROSHARK lives on Base, and the Base-nat
backend/app/api/simulation.py:5525
Functionget_generate_status
Query report generation task progress Request (JSON): { "task_id": "task_xxxx", // Optional, task_id returned by
backend/app/api/report.py:237
Functionget_graph_data
Get graph data (nodes and edges)
backend/app/api/graph.py:578
Methodget_graph_data
Full graph dump with enriched edge format (for frontend). Includes derived fields: fact_type, source_node_name, target_node_name.
backend/app/storage/neo4j_storage.py:831
Methodget_graph_data
Get full graph data (enriched format for frontend). Returns dict with: graph_id, nodes, edges, node_count, edge_count
backend/app/storage/graph_storage.py:122
Functionget_graph_entities
Get all entities from the graph (filtered) Only returns nodes matching predefined entity types (nodes whose Labels are not just Entity)
backend/app/api/simulation.py:1272
Methodget_graph_info
Get graph metadata (node count, edge count, entity types).
backend/app/storage/graph_storage.py:118
Functionget_graph_statistics_tool
Graph statistics tool endpoint (for debugging) Request (JSON): { "graph_id": "miroshark_xxxx" }
backend/app/api/report.py:880
Functionget_influence_leaderboard
Compute agent influence scores from simulation action JSONL logs. Returns the top 20 agents sorted by score descending.
backend/app/api/simulation.py:3810
Functionget_interaction_network
Build an agent interaction network from simulation action JSONL logs. Extracts agent-to-agent edges (likes, reposts, quotes, comments, follo
backend/app/api/simulation.py:10612
Functionget_interview_history
Get interview history Read all interview records from simulation database Request (JSON): { "simulation_id": "sim_x
backend/app/api/simulation.py:8758
Functionget_llm_calls
Return LLM call events with filtering.
backend/app/api/observability.py:242
Methodget_node
Get a single node by UUID.
backend/app/storage/graph_storage.py:72
Methodget_node_edges
O(1) Cypher — NOT full scan + filter like the old Zep code.
backend/app/storage/neo4j_storage.py:537
Methodget_node_edges
Get all edges connected to a node (O(1) via Cypher, not full scan).
backend/app/storage/graph_storage.py:76
Methodget_nodes_by_label
Get nodes filtered by entity type label.
backend/app/storage/graph_storage.py:80
Functionget_notebook_ipynb
Return a pre-populated Jupyter notebook for a published simulation. The notebook is a v1-schema nbformat 4 JSON document with the trajectory
backend/app/api/simulation.py:7031
Methodget_num_edges
(self)
backend/wonderwall/social_agent/agent_graph.py:254
Methodget_ontology
Retrieve stored ontology for a graph.
backend/app/storage/graph_storage.py:30
Methodget_openai_function_list
Auto-discover all public async methods as LLM-callable tools.
backend/wonderwall/simulations/base.py:312
Functionget_outcome_distribution
Return the platform-wide outcome distribution as JSON. Companion of ``/api/stats``: where ``/api/stats`` reports totals (how many sims, views
backend/app/api/stats.py:130
Functionget_peak_round
Peak-round belief analytics for a published simulation. The analytical counterpart to ``trajectory.csv`` (raw per-round data) and ``chart.svg
backend/app/api/simulation.py:5797
Functionget_platform_stats
Return platform-level aggregate statistics as JSON. Response shape:: { "success": true, "data": { "schem
backend/app/api/stats.py:63
Functionget_platform_stats_badge
Render the platform-stats badge as an SVG. A flat 20-pixel Shields.io-style pill: ``MiroShark`` (grey) + ``N simulations`` (platform-blue). C
backend/app/api/stats.py:183
Functionget_platform_status
Return the platform health envelope. Response shape:: { "success": true, "data": { "ok": true,
backend/app/api/status.py:54
Functionget_polymarket_json
Polymarket-shaped binary-market prediction for a completed sim. The fifteenth share surface — and the first one shaped for a specific externa
backend/app/api/simulation.py:6308
Functionget_prepare_status
Query preparation task progress Supports two query methods: 1. Query ongoing task progress by task_id 2. Check if preparation is alr
backend/app/api/simulation.py:2037
Methodget_progress
Get report generation progress
backend/app/services/report_agent.py:3330
Functionget_project
Get project details
backend/app/api/graph.py:39
Methodget_project_files
Get all file paths for a project
backend/app/models/project.py:308
Functionget_project_stats
Return per-project aggregate statistics as JSON. Response shape:: { "success": true, "data": { "schema_v
backend/app/api/stats.py:226
Functionget_push_vapid_public_key
Return the VAPID public key for the frontend applicationServerKey. The key is generated on first call and cached on disk in uploads/vapi
backend/app/api/simulation.py:10341
Methodget_recent
Return the last N events from the ring buffer.
backend/app/utils/event_logger.py:213
Functionget_recommendations
( user_index, cosine_similarities, items, score, top_n=100, )
backend/wonderwall/social_platform/recsys.py:198
Functionget_replay_gif
Render an animated GIF of the per-round belief drift. 1200×630 (same OG aspect as the share card) — one frame per round with belief bars slid
backend/app/api/simulation.py:5184
Functionget_report
Get report details Returns: { "success": true, "data": { "report_id": "report_xxxx",
backend/app/api/report.py:321
Functionget_report_by_simulation
Get report by simulation ID Returns: { "success": true, "data": { "report_id": "report_xxxx"
backend/app/api/report.py:364
Functionget_reproduce_config
Return a complete reproducibility config blob for a published sim. The blob is a v1-schema JSON document containing every parameter a second
backend/app/api/simulation.py:6941
Functionget_run_status
Get simulation real-time running status (for frontend polling) Returns: { "success": true, "data": {
backend/app/api/simulation.py:3419
Functionget_run_status_detail
Get simulation detailed running status (including all actions) For frontend real-time display Query parameters: platform: Filte
backend/app/api/simulation.py:3477
Methodget_running_simulations
Get list of all running simulation IDs
backend/app/services/simulation_runner.py:1502
Functionget_settings
Return current active config across every slot (API keys masked).
backend/app/api/settings.py:145
Functionget_share_card
Render a 1200x630 PNG suitable for Open Graph / Twitter image unfurling. Same publish gate as ``/embed-summary``: requires ``is_public=True``
backend/app/api/simulation.py:5118
Functionget_signal_json
Machine-readable trading signal derived from a finished simulation. Collapses the final-round belief split + quality health into a single act
backend/app/api/simulation.py:5600
Functionget_signed_result_json
HMAC-signed wrapper around the ``signal.json`` payload. The signal returned by ``/signal.json`` is the canonical machine-readable view of a f
backend/app/api/simulation.py:5685
Functionget_simulation
Get simulation status
backend/app/api/simulation.py:2160
Functionget_simulation_actions
Get agent action history during simulation Query parameters: limit: Return count (default 100) offset: Offset (default 0)
backend/app/api/simulation.py:3578
Functionget_simulation_config
Get simulation configuration (complete configuration intelligently generated by LLM) Returns containing: - time_config: Time configu
backend/app/api/simulation.py:2852
Functionget_simulation_config_realtime
Get simulation configuration in real-time (for viewing progress during generation) Differences from /config endpoint: - Reads files dire
backend/app/api/simulation.py:2573
Functionget_simulation_frame
Compact round snapshot: actions in the round + market prices + belief state. Purpose: power scrubbing UIs (ReplayView) without loading all action
backend/app/api/simulation.py:4436
Functionget_simulation_history
Get historical simulation list (with project details) Used for homepage historical project display, returns simulation list with rich inform
backend/app/api/simulation.py:2281
Functionget_simulation_lineage
Return the parent + public children for a published simulation. PR #75's reproducibility config persisted ``parent_simulation_id`` plus a cou
backend/app/api/simulation.py:7139
Functionget_simulation_posts
Get simulation posts Query parameters: platform: Platform type (twitter/reddit) limit: Return count (default 50) off
backend/app/api/simulation.py:8368
Functionget_simulation_profiles
Get simulation Agent Profiles Query parameters: platform: Platform type (reddit/twitter, default reddit)
backend/app/api/simulation.py:2424
Functionget_simulation_profiles_realtime
Get simulation Agent Profiles in real-time (for viewing progress during generation) Differences from /profiles endpoint: - Reads files d
backend/app/api/simulation.py:2462
Functionget_simulation_quality
Compute post-completion quality diagnostics for a simulation. Measures participation rate, stance entropy, convergence speed, and cross-
backend/app/api/simulation.py:4231
Functionget_simulation_timeline
Get simulation timeline (summarized by round) For frontend progress bar and timeline view Query parameters: start_round: Start
backend/app/api/simulation.py:3632
Functionget_spec_path
Return the on-disk path to ``openapi.yaml`` if it exists.
backend/app/api/docs.py:266
Functionget_stats
Return aggregated observability statistics.
backend/app/api/observability.py:171
Methodget_stats
Get statistics
backend/app/services/graph_memory_updater.py:392
Functionget_status_badge_svg
Flat Shields.io-style consensus-status badge for a published sim. The thirteenth share surface, distribution edition. Where the previous twel
backend/app/api/simulation.py:6390
Functionget_surface_stats
Per-share-surface request counters for a published simulation. Returns the number of times each share surface has served a successful respons
backend/app/api/simulation.py:6863
Functionget_surfaces_catalog
Return the surface catalog as JSON. Query params: * ``type`` (optional, str) — narrow the catalog to a single category. One of ``analy
backend/app/api/surfaces.py:61
Functionget_task
Query task status
backend/app/api/graph.py:556
Functionget_template
Get a single template by ID, including the full seed_document and simulation_requirement for use in the creation flow.
backend/app/api/templates.py:105
Functionget_template_capabilities
Expose backend feature flags that control template behaviour. Lets the frontend gray out toggles (e.g. "Live oracle data") when the correspon
backend/app/api/templates.py:20
Methodget_temporal_evolution
Group edges by creation time to show how the graph evolved.
backend/app/storage/neo4j_storage.py:1154
← previousnext →1,901–2,000 of 3,647, ranked by callers