Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add zero prompts to python CEC #12459

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Loading