Publish
Functions:
| Name | Description |
|---|---|
publish_event |
Publish an event asynchronously using the background task manager. |
Attributes:
| Name | Type | Description |
|---|---|---|
logger |
|
Attributes¶
Classes¶
Functions¶
publish_event
¶
publish_event(event, publisher=Inject[BasePublisher], task_manager=Inject[BackgroundTaskManager])
Publish an event asynchronously using the background task manager.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
EventModel
|
The event to publish. |
required |
|
BasePublisher | None
|
The publisher instance (injected). |
Inject[BasePublisher]
|
|
BackgroundTaskManager
|
The background task manager (injected). |
Inject[BackgroundTaskManager]
|
Source code in agentflow/publisher/publish.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |