@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
26 lines • 1.11 kB
TypeScript
import { TurnState } from '../../TurnState';
import { TurnContext } from 'botbuilder';
/**
* A test version of the TurnState class used by unit tests.
*/
export declare class TestTurnState extends TurnState {
/**
* @private
*/
private constructor();
/**
* Creates a new `TestTurnState` instance.
* @param {TurnContext} context Context for the current turn of conversation with the user.
* @param {TestTurnState} testState Optional. State to initialize the new instance with.
* @param {any} testState.user User state to initialize the new instance with.
* @param {any} testState.conversation Conversation state to initialize the new instance with.
* @param {any} testState.temp Temporary state to initialize the new instance with.
* @returns {Promise<TestTurnState>} Created `TestTurnState` instance.
*/
static create(context: TurnContext, testState?: {
user?: Record<string, any>;
conversation?: Record<string, any>;
temp?: Record<string, any>;
}): Promise<TestTurnState>;
}
//# sourceMappingURL=TestTurnState.d.ts.map