Skip to content

Commit

Permalink
feat: add zero prompts to python CEC (#12459)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankqianms committed Sep 26, 2024
1 parent 1c36fb9 commit d8792ed
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,24 @@
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
"isNotificationOnly": false,
"commandLists": [
{
"scopes": [
"personal"
],
"commands": [
{
"title": "Solve the equation: 3x + 11= 14",
"description": "Help me solve the equation: 3x + 11= 14"
},
{
"title": "The weather of San Francisco",
"description": "The weather of San Francisco"
}
]
}
]
}
],
"composeExtensions": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ bot_app = Application[TurnState](
ai=AIOptions(planner=planner),
)
)

@bot_app.conversation_update("membersAdded")
async def on_members_added(context: TurnContext, state: TurnState):
await context.send_activity("How can I help you today?")

@bot_app.ai.action("getCurrentWeather")
async def get_current_weather(context: TurnContext, state: TurnState):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,24 @@
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
"isNotificationOnly": false,
"commandLists": [
{
"scopes": [
"personal"
],
"commands": [
{
"title": "Create task:remind drink tonight",
"description": "Create a task for me to remind me drink water tonight"
},
{
"title": "Delete all my current tasks",
"description": "Delete all my current tasks"
}
]
}
]
}
],
"composeExtensions": [],
Expand Down
4 changes: 0 additions & 4 deletions templates/python/custom-copilot-assistant-new/src/bot.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ bot_app = Application[AppTurnState](
)
)

@bot_app.conversation_update("membersAdded")
async def on_members_added(context: TurnContext, state: TurnState):
await context.send_activity("How can I help you today?")

@bot_app.turn_state_factory
async def turn_state_factory(context: TurnContext):
return await AppTurnState.load(context, storage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,28 @@
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
"isNotificationOnly": false,
"commandLists": [
{
"scopes": [
"personal"
],
"commands": [
{
"title": "List Contoso history in table",
"description": "Tell me the history of Contoso Electronics, format in a table."
},
{
"title": "Compare Contoso Electronics plan",
"description": "Compare different Contoso Electronics benefit package plans"
},
{
"title": "Summarize PerksPlus Program",
"description": "Summarize Contoso Electronics PerksPlus Program"
}
]
}
]
}
],
"composeExtensions": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ bot_app = Application[TurnState](
)
)

@bot_app.conversation_update("membersAdded")
async def on_members_added(context: TurnContext, state: TurnState):
await context.send_activity("How can I help you today?")

@bot_app.error
async def on_error(context: TurnContext, error: Exception):
# This check writes out errors to console log .vs. app insights.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,28 @@
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
"isNotificationOnly": false,
"commandLists": [
{
"scopes": [
"personal"
],
"commands": [
{
"title": "List Contoso history in table",
"description": "Tell me the history of Contoso Electronics, format in a table."
},
{
"title": "Compare Contoso Electronics plan",
"description": "Compare different Contoso Electronics benefit package plans"
},
{
"title": "Summarize PerksPlus Program",
"description": "Summarize Contoso Electronics PerksPlus Program"
}
]
}
]
}
],
"composeExtensions": [],
Expand Down
4 changes: 0 additions & 4 deletions templates/python/custom-copilot-rag-custom-api/src/bot.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ bot_app = Application[TurnState](
)
)

@bot_app.conversation_update("membersAdded")
async def on_members_added(context: TurnContext, state: TurnState):
await context.send_activity("How can I help you today?")

@bot_app.error
async def on_error(context: TurnContext, error: Exception):
# This check writes out errors to console log .vs. app insights.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,28 @@
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
"isNotificationOnly": false,
"commandLists": [
{
"scopes": [
"personal"
],
"commands": [
{
"title": "List Contoso history in table",
"description": "Tell me the history of Contoso Electronics, format in a table."
},
{
"title": "Compare Contoso Electronics plan",
"description": "Compare different Contoso Electronics benefit package plans"
},
{
"title": "Summarize PerksPlus Program",
"description": "Summarize Contoso Electronics PerksPlus Program"
}
]
}
]
}
],
"composeExtensions": [],
Expand Down
4 changes: 0 additions & 4 deletions templates/python/custom-copilot-rag-customize/src/bot.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ bot_app = Application[TurnState](
)
)

@bot_app.conversation_update("membersAdded")
async def on_members_added(context: TurnContext, state: TurnState):
await context.send_activity("How can I help you today?")

@bot_app.error
async def on_error(context: TurnContext, error: Exception):
# This check writes out errors to console log .vs. app insights.
Expand Down

0 comments on commit d8792ed

Please sign in to comment.