Skip to content

Commit d841395

Browse files
axelsrzjohnataylor
authored andcommitted
Moved BFHtppClient and ChannelServiceHandler out of skills directly into core (#500)
1 parent 4a2ecef commit d841395

File tree

11 files changed

+15
-14
lines changed

11 files changed

+15
-14
lines changed

libraries/botbuilder-core/botbuilder/core/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
from .bot_state_set import BotStateSet
1818
from .bot_telemetry_client import BotTelemetryClient, Severity
1919
from .card_factory import CardFactory
20+
from .channel_service_handler import BotActionNotImplementedError, ChannelServiceHandler
2021
from .conversation_state import ConversationState
2122
from .intent_score import IntentScore
2223
from .invoke_response import InvokeResponse
24+
from .bot_framework_http_client import BotFrameworkHttpClient
2325
from .memory_storage import MemoryStorage
2426
from .memory_transcript_store import MemoryTranscriptStore
2527
from .message_factory import MessageFactory
@@ -44,6 +46,7 @@
4446
"AnonymousReceiveMiddleware",
4547
"AutoSaveStateMiddleware",
4648
"Bot",
49+
"BotActionNotImplementedError",
4750
"BotAdapter",
4851
"BotAssert",
4952
"BotFrameworkAdapter",
@@ -53,10 +56,12 @@
5356
"BotTelemetryClient",
5457
"calculate_change_hash",
5558
"CardFactory",
59+
"ChannelServiceHandler",
5660
"ConversationState",
5761
"conversation_reference_extension",
5862
"IntentScore",
5963
"InvokeResponse",
64+
"BotFrameworkHttpClient",
6065
"MemoryStorage",
6166
"MemoryTranscriptStore",
6267
"MessageFactory",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from logging import Logger
77
import aiohttp
88

9-
from botbuilder.core import InvokeResponse
109
from botbuilder.schema import Activity
1110
from botframework.connector.auth import (
1211
ChannelProvider,
@@ -15,6 +14,8 @@
1514
MicrosoftAppCredentials,
1615
)
1716

17+
from . import InvokeResponse
18+
1819

1920
class BotFrameworkHttpClient:
2021

libraries/botbuilder-core/botbuilder/core/integration/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
# --------------------------------------------------------------------------
77

88
from .aiohttp_channel_service import aiohttp_channel_service_routes
9-
from .bot_framework_http_client import BotFrameworkHttpClient
10-
from .channel_service_handler import BotActionNotImplementedError, ChannelServiceHandler
119
from .aiohttp_channel_service_exception_middleware import aiohttp_error_middleware
1210

1311
__all__ = [
1412
"aiohttp_channel_service_routes",
15-
"BotFrameworkHttpClient",
16-
"BotActionNotImplementedError",
17-
"ChannelServiceHandler",
1813
"aiohttp_error_middleware",
1914
]

libraries/botbuilder-core/botbuilder/core/integration/aiohttp_channel_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Transcript,
1414
)
1515

16-
from .channel_service_handler import ChannelServiceHandler
16+
from botbuilder.core import ChannelServiceHandler
1717

1818

1919
async def deserialize_from_body(

libraries/botbuilder-core/botbuilder/core/integration/aiohttp_channel_service_exception_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
HTTPInternalServerError,
77
)
88

9-
from .channel_service_handler import BotActionNotImplementedError
9+
from botbuilder.core import BotActionNotImplementedError
1010

1111

1212
@middleware

libraries/botbuilder-core/botbuilder/core/skills/skill_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
from uuid import uuid4
55

6-
from botbuilder.core.integration import ChannelServiceHandler
7-
from botbuilder.core import Bot, BotAdapter, TurnContext
6+
from botbuilder.core import Bot, BotAdapter, ChannelServiceHandler, TurnContext
87
from botbuilder.schema import (
98
Activity,
109
ActivityTypes,

samples/experimental/skills-prototypes/simple-bot-to-bot/simple-root-bot/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
from aiohttp.web import Request, Response
1010
from botbuilder.core import (
1111
BotFrameworkAdapterSettings,
12+
BotFrameworkHttpClient,
1213
ConversationState,
1314
MemoryStorage,
1415
TurnContext,
1516
BotFrameworkAdapter,
1617
)
1718
from botbuilder.core.integration import (
18-
BotFrameworkHttpClient,
1919
aiohttp_channel_service_routes,
2020
aiohttp_error_middleware,
2121
)

samples/experimental/skills-prototypes/simple-bot-to-bot/simple-root-bot/bots/root_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
from botbuilder.core import (
44
ActivityHandler,
5+
BotFrameworkHttpClient,
56
ConversationState,
67
MessageFactory,
78
TurnContext,
89
)
9-
from botbuilder.core.integration import BotFrameworkHttpClient
1010
from botbuilder.core.skills import SkillConversationIdFactory
1111

1212
from botbuilder.schema import ActivityTypes, ChannelAccount

samples/experimental/test-protocol/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from aiohttp.web import Request, Response
66

77
from botframework.connector.auth import AuthenticationConfiguration, SimpleCredentialProvider
8-
from botbuilder.core.integration import BotFrameworkHttpClient, aiohttp_channel_service_routes
8+
from botbuilder.core import BotFrameworkHttpClient
9+
from botbuilder.core.integration import aiohttp_channel_service_routes
910
from botbuilder.schema import Activity
1011

1112
from config import DefaultConfig

0 commit comments

Comments
 (0)