bothy-sdk
    Preparing search index...

    Class RenderedContext

    The context of a run as the runtime receives it.

    The texts hold message contents, so neither appears in util.inspect, String() or JSON.stringify of the object (SEC-LOG-2); read the members directly.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates the rendered context.

      Parameters

      • system: string

        The system part.

      • trigger: string

        The trigger part.

      Returns RenderedContext

    Properties

    system: string

    The fixed system part: notice, context messages with author and trust, marked data blocks.

    trigger: string

    The text of the triggering message and the transcripts of its attachments.

    Methods

    • Returns the sizes only, so a structured logger never writes the contents.

      Returns Record<string, number>

      The lengths of both parts.

    • Returns the sizes only, never the contents.

      Returns string

      RenderedContext(system=<n chars>, trigger=<m chars>).