Skip to content

Commit 8cead37

Browse files
authored
Merge branch 'main' into ale-fix-get-thread-context
2 parents 1ded1f4 + 98a8f59 commit 8cead37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2795
-1627
lines changed

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ For FaaS environments (`process_before_response=True`), long-running handlers ex
152152

153153
### Kwargs Injection
154154

155-
Listeners receive arguments by parameter name. The framework inspects function signatures and injects matching args: `body`, `event`, `action`, `command`, `payload`, `context`, `client`, `ack`, `say`, `respond`, `logger`, `complete`, `fail`, `agent`, etc. Defined in `slack_bolt/kwargs_injection/args.py`.
155+
Listeners receive arguments by parameter name. The framework inspects function signatures and injects matching args: `body`, `event`, `action`, `command`, `payload`, `context`, `client`, `ack`, `say`, `respond`, `logger`, `complete`, `fail`, etc. Defined in `slack_bolt/kwargs_injection/args.py`.
156156

157157
### Adapter System
158158

159159
Each adapter in `slack_bolt/adapter/` converts between a web framework's request/response types and `BoltRequest`/`BoltResponse`. Adapters exist for: Flask, FastAPI, Django, Starlette, Sanic, Bottle, Tornado, CherryPy, Falcon, Pyramid, AWS Lambda, Google Cloud Functions, Socket Mode, WSGI, ASGI, and more.
160160

161161
### AI Agents & Assistants
162162

163-
`BoltAgent` (`slack_bolt/agent/`) provides `chat_stream()`, `set_status()`, and `set_suggested_prompts()` for AI-powered agents. `Assistant` middleware (`slack_bolt/middleware/assistant/`) handles assistant thread events.
163+
`Assistant` middleware (`slack_bolt/middleware/assistant/`) handles assistant thread events.
164164

165165
## Key Development Patterns
166166

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ log_file = "logs/pytest.log"
4646
log_file_level = "DEBUG"
4747
log_format = "%(asctime)s %(levelname)s %(message)s"
4848
log_date_format = "%Y-%m-%d %H:%M:%S"
49-
filterwarnings = [
50-
"ignore:\"@coroutine\" decorator is deprecated since Python 3.8, use \"async def\" instead:DeprecationWarning",
51-
"ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning",
52-
"ignore:Unknown config option. asyncio_mode:pytest.PytestConfigWarning", # ignore warning when asyncio_mode is set but pytest-asyncio is not installed
53-
]
49+
filterwarnings = []
5450
asyncio_mode = "auto"
5551

5652
[tool.mypy]

slack_bolt/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
from .context.fail import Fail
1515
from .context.respond import Respond
1616
from .context.say import Say
17+
from .context.say_stream import SayStream
1718
from .kwargs_injection import Args
1819
from .listener import Listener
1920
from .listener_matcher import CustomListenerMatcher
2021
from .request import BoltRequest
2122
from .response import BoltResponse
2223

2324
# AI Agents & Assistants
24-
from .agent import BoltAgent
2525
from .middleware.assistant.assistant import (
2626
Assistant,
2727
)
@@ -42,12 +42,12 @@
4242
"Fail",
4343
"Respond",
4444
"Say",
45+
"SayStream",
4546
"Args",
4647
"Listener",
4748
"CustomListenerMatcher",
4849
"BoltRequest",
4950
"BoltResponse",
50-
"BoltAgent",
5151
"Assistant",
5252
"AssistantThreadContext",
5353
"AssistantThreadContextStore",

slack_bolt/agent/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

slack_bolt/agent/agent.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

slack_bolt/agent/async_agent.py

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)