Edit

Share via


TranscriptLoggerMiddleware Class

Logs incoming and outgoing activities to a TranscriptStore.

Constructor

TranscriptLoggerMiddleware(logger: TranscriptLogger)

Parameters

Name Description
logger
Required

Methods

log_activity

Logs the activity. :param transcript: transcript. :param activity: Activity to log.

on_turn

Initialization for middleware. :param context: Context for the current turn of conversation with the user. :param logic: Function to call at the end of the middleware chain.

log_activity

Logs the activity. :param transcript: transcript. :param activity: Activity to log.

async log_activity(transcript: Queue, activity: Activity) -> None

Parameters

Name Description
transcript
Required
activity
Required

on_turn

Initialization for middleware. :param context: Context for the current turn of conversation with the user. :param logic: Function to call at the end of the middleware chain.

async on_turn(context: TurnContext, logic: Callable[[TurnContext], Awaitable])

Parameters

Name Description
context
Required
logic
Required