Skip to content

API Reference parrot.knowledge.wiki.roblox.ingest

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.wiki.roblox.ingest

View source

Generation validation, selection, explicit refresh and publication (FEAT-532 TASK-2902).

ingest_roblox_api(*, refresh: bool = False) is the single async entry point spec §2 proposes. Without --refresh it never touches the network — it validates and returns the existing published generation, or raises an actionable error instructing the caller to run --refresh (spec: "First acquisition therefore requires --refresh" — there is no implicit first-build). With --refresh it compares identities (Studio version, creator-docs commit, renderer schema version) against the currently active generation and either reuses it unchanged or rebuilds and atomically republishes — every acquisition/render/build failure leaves the previous generation selected and readable (spec: "Preserve the last good generation on all acquisition/render/publication failures").

Never mutates the global namespace registry itself — spec: "Do not silently replace a user's existing roblox declaration." Registration is always a manual, explicit wikitoolkit ns add step; this module only returns the exact command as a hint.

Alias AcquiredApiPayloads

Re-exported from parrot.knowledge.wiki.roblox.acquire.AcquiredApiPayloads.

Attribute RENDERER_SCHEMA_VERSION

Alias RenderedGeneration

Re-exported from parrot.knowledge.wiki.roblox.render.RenderedGeneration.

Alias RobloxApiAcquisitionError

Re-exported from parrot.knowledge.wiki.roblox.acquire.RobloxApiAcquisitionError.

Alias RobloxApiIngestResult

Re-exported from parrot.knowledge.wiki.roblox.models.RobloxApiIngestResult.

Alias RobloxApiManifest

Re-exported from parrot.knowledge.wiki.roblox.models.RobloxApiManifest.

Class RobloxApiNotIngestedError

Raised by a no---refresh call with no valid published generation.

Carries an actionable message (the exact --refresh command) — never a bare "not found".

Alias SQLiteWikiStore

Re-exported from parrot.knowledge.wiki.store.SQLiteWikiStore.

Alias acquire_roblox_api_payloads

Re-exported from parrot.knowledge.wiki.roblox.acquire.acquire_roblox_api_payloads.

Alias build_normalized_dump

Re-exported from parrot.knowledge.wiki.roblox.render.build_normalized_dump.

Alias create_wiki_store

Re-exported from parrot.knowledge.wiki.store.create_wiki_store.

Alias generations

Re-exported from parrot.knowledge.wiki.roblox.generations.

Function get_roblox_status

Offline status: recorded versions + download timestamp, no network.

get_roblox_status() -> dict | None

Returns: dict | None — {"generation_id", "studio_version", "creator_docs_commit", "downloaded_at", "class_count", "enum_count"}, or None when nothing has been ingested yet. Never makes a network request — "wikitoolkit status ... never does network."

Function ingest_roblox_api

Ingest (or validate/reuse) the Roblox API plane.

ingest_roblox_api(*, refresh: bool = False, http_timeout: float = 30.0, session=None) -> RobloxApiIngestResult

Parameter Type Default Description
refresh bool False When False (default), performs zero network requests: validates and returns the existing published generation, or raises :class:RobloxApiNotIngestedError with the exact command to run. When True, resolves current Studio version/creator-docs commit, reuses the active generation unchanged when both (and the renderer schema) match, and otherwise rebuilds and atomically republishes.
http_timeout float 30.0 Per-request timeout forwarded to acquisition.
session None An existing aiohttp.ClientSession to reuse (mainly for tests); None lets acquisition manage its own.

Returns: RobloxApiIngestResult — class:RobloxApiIngestResult.

Raises:

  • RobloxApiNotIngestedError — No --refresh and nothing valid published yet.
  • RobloxApiAcquisitionError — A --refresh acquisition/build failure with no previous generation to fall back to (the very first ingest). Any subsequent failure instead returns the preserved previous generation with a diagnostic.

Attribute logger

Alias render_generation

Re-exported from parrot.knowledge.wiki.roblox.render.render_generation.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally