Contents

response(entryID:action:)

A response event addressed to a transcript entry.

Declaration

static func response(entryID: String? = nil, action: LanguageModelExecutorGenerationChannel.Response.Action) -> LanguageModelExecutorGenerationChannel.Event

Parameters

  • entryID:

    The response entry this event targets. Pass nil to let the framework coalesce consecutive response events into a single entry; pass an explicit id to anchor the event to a specific entry.

  • action:

    The operation to perform on the response entry.

See Also

Handling the channel events