From be47cad4ce2fd767c03a9a260d300da1bba11d67 Mon Sep 17 00:00:00 2001 From: frankqianms Date: Fri, 8 Nov 2024 11:09:10 +0800 Subject: [PATCH] fix: bad import --- .../custom-copilot-assistant-assistants-api/src/bot.py.tpl | 2 ++ templates/python/custom-copilot-assistant-new/src/bot.py.tpl | 2 ++ .../python/custom-copilot-rag-azure-ai-search/src/bot.py.tpl | 4 +++- templates/python/custom-copilot-rag-customize/src/bot.py.tpl | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/python/custom-copilot-assistant-assistants-api/src/bot.py.tpl b/templates/python/custom-copilot-assistant-assistants-api/src/bot.py.tpl index 6e4233e1ef..c4b4f4799f 100644 --- a/templates/python/custom-copilot-assistant-assistants-api/src/bot.py.tpl +++ b/templates/python/custom-copilot-assistant-assistants-api/src/bot.py.tpl @@ -3,12 +3,14 @@ import sys import traceback import json from typing import Any, Dict, Optional +from dataclasses import asdict from botbuilder.core import MemoryStorage, TurnContext from teams import Application, ApplicationOptions, TeamsAdapter from teams.ai import AIOptions from teams.ai.planners import AssistantsPlanner, OpenAIAssistantsOptions, AzureOpenAIAssistantsOptions from teams.state import TurnState +from teams.feedback_loop_data import FeedbackLoopData from config import Config diff --git a/templates/python/custom-copilot-assistant-new/src/bot.py.tpl b/templates/python/custom-copilot-assistant-new/src/bot.py.tpl index 444c020b5f..21fd597336 100644 --- a/templates/python/custom-copilot-assistant-new/src/bot.py.tpl +++ b/templates/python/custom-copilot-assistant-new/src/bot.py.tpl @@ -3,6 +3,7 @@ import sys import traceback import json from typing import Any, Dict, Optional +from dataclasses import asdict from botbuilder.core import MemoryStorage, TurnContext from state import AppTurnState @@ -13,6 +14,7 @@ from teams.ai.models import AzureOpenAIModelOptions, OpenAIModel, OpenAIModelOpt from teams.ai.planners import ActionPlanner, ActionPlannerOptions from teams.ai.prompts import PromptManager, PromptManagerOptions from teams.state import TurnState +from teams.feedback_loop_data import FeedbackLoopData from config import Config diff --git a/templates/python/custom-copilot-rag-azure-ai-search/src/bot.py.tpl b/templates/python/custom-copilot-rag-azure-ai-search/src/bot.py.tpl index 52547a7601..692b02adbe 100644 --- a/templates/python/custom-copilot-rag-azure-ai-search/src/bot.py.tpl +++ b/templates/python/custom-copilot-rag-azure-ai-search/src/bot.py.tpl @@ -1,11 +1,12 @@ import asyncio -from dataclasses import dataclass +from dataclasses import dataclass, asdict import json import os import sys import traceback from typing import Generic, TypeVar + from botbuilder.core import MemoryStorage, TurnContext from teams import Application, ApplicationOptions, TeamsAdapter from teams.ai import AIOptions @@ -14,6 +15,7 @@ from teams.ai.planners import ActionPlanner, ActionPlannerOptions from teams.ai.prompts import PromptManager, PromptManagerOptions from teams.ai.actions import ActionTypes from teams.state import TurnState +from teams.feedback_loop_data import FeedbackLoopData from azure_ai_search_data_source import AzureAISearchDataSource, AzureAISearchDataSourceOptions from config import Config diff --git a/templates/python/custom-copilot-rag-customize/src/bot.py.tpl b/templates/python/custom-copilot-rag-customize/src/bot.py.tpl index 23e30c54eb..d249d4f54a 100644 --- a/templates/python/custom-copilot-rag-customize/src/bot.py.tpl +++ b/templates/python/custom-copilot-rag-customize/src/bot.py.tpl @@ -2,6 +2,7 @@ import os import sys import traceback import json +from dataclasses import asdict from botbuilder.core import MemoryStorage, TurnContext from teams import Application, ApplicationOptions, TeamsAdapter from teams.ai import AIOptions @@ -9,6 +10,7 @@ from teams.ai.models import AzureOpenAIModelOptions, OpenAIModel, OpenAIModelOpt from teams.ai.planners import ActionPlanner, ActionPlannerOptions from teams.ai.prompts import PromptManager, PromptManagerOptions from teams.state import TurnState +from teams.feedback_loop_data import FeedbackLoopData from my_data_source import MyDataSource