vapor-chamber API reference - v1.3.0
    Preparing search index...

    Function busApiSchema

    • Generates a JSON Schema-style description of the bus API. Include this in LLM system prompts so the model knows exactly what methods are available and their signatures — reduces hallucinated method calls.

      Returns Record<
          string,
          { description: string; params: Record<string, string>; returns: string },
      >

      const schema = busApiSchema();
      const systemPrompt = `Use the vapor-chamber bus API:\n${JSON.stringify(schema, null, 2)}`;