OpenClaw SDK
    Preparing search index...

    Function validateEventFrame

    • Validates an event frame.

      Parameters

      • frame: Partial<EventFrame>

        Partial frame to validate

      Returns EventFrame

      The validated event frame

      ValidationError if validation fails

      const frame = validateEventFrame({
      event: "agent.created",
      payload: { agentId: "agent-123" }
      });
      // frame is typed as EventFrame