This is an issue of the code sample in the default template, In both JS and Python template.
Reproduction Steps
Create a new teams app by using the default template (Custom Copilot => AI Agent) and check the code in `src\app\app.ts`.
export async function getNickname(
context: TurnContext,
state: TurnState,
parameters: NicknameParameters
): Promise<string> {
const nicknames = {
"San Francisco": "The Golden City",
"Los Angeles": "LA",
};
return nicknames[parameters.location] ?? `No nickname for ${parameters.location} found`;
}
Language
Javascript/Typescript
Version
latest
Description
This is an issue of the code sample in the default template, In both JS and Python template.
Reproduction Steps