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

Fix Async Mocking in TelegramAgent Tests #693

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
da53272
Initial design, Discord agent
marklysze Jan 16, 2025
e4b0421
Discord agent now sending messages, callable message send
marklysze Jan 16, 2025
bbd2f6e
Optimised nested chat and cleaned up unnecessary code
marklysze Jan 16, 2025
7d11c16
Separation of Discord async funcionality
marklysze Jan 17, 2025
78b5d60
Handling of closed connection
marklysze Jan 17, 2025
5f6f61b
Discord agent, awaits replies
marklysze Jan 17, 2025
98ad2b3
Initial slack agent implementation
marklysze Jan 18, 2025
c4f30f8
Slack agent waiting capability
marklysze Jan 18, 2025
c350368
Slack agent working Async as well, yay!
marklysze Jan 22, 2025
3226b47
Merge remote-tracking branch 'origin/main' into commsagentsworkflow
marklysze Jan 22, 2025
1f49fbc
Telegram with library, sending message
marklysze Jan 23, 2025
9dd9004
Tidy, change to Telegram config
marklysze Jan 23, 2025
d8067d5
Sync and Async Telegram!
marklysze Jan 23, 2025
223a8d3
Comment tidy and remove unnecessary print.
marklysze Jan 23, 2025
f449f39
Tidy, naming, package extras, remove send_config
marklysze Jan 23, 2025
e83284c
Extra versions specified
marklysze Jan 23, 2025
1199dd5
Merge remote-tracking branch 'origin/main' into commsagentsworkflow
marklysze Jan 23, 2025
cf1b5b6
refactor(tests): remove async/await tests from telegram agent
devin-ai-integration[bot] Jan 29, 2025
de616e2
feat(comms): Add comprehensive test suite for platform agents
devin-ai-integration[bot] Jan 29, 2025
7a1cb91
test(comms): Update platform agent tests with mock sender and safer t…
devin-ai-integration[bot] Jan 29, 2025
6c1acb6
test(comms): Update handler tests with improved mocking and safer tes…
devin-ai-integration[bot] Jan 29, 2025
f902610
style(tests): Consistent formatting across platform test files
devin-ai-integration[bot] Jan 29, 2025
4bf6e43
refactor(comms): Update Pydantic config to use ConfigDict and fix max…
devin-ai-integration[bot] Jan 29, 2025
440b00e
fix(tests): Update TelegramAgent tests with proper async mocking
devin-ai-integration[bot] Jan 29, 2025
ec52fd3
test(comms): Update test configuration with consistent mock values
devin-ai-integration[bot] Jan 29, 2025
f25cbd9
refactor(comms): Update Pydantic config to use ConfigDict
devin-ai-integration[bot] Jan 29, 2025
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
26 changes: 26 additions & 0 deletions autogen/agentchat/contrib/comms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2023 - 2025, Owners of https://github.com/ag2ai
#
# SPDX-License-Identifier: Apache-2.0
from .discord_agent import (
DiscordAgent,
DiscordConfig,
)
from .platform_configs import ReplyMonitorConfig
from .slack_agent import (
SlackAgent,
SlackConfig,
)
from .telegram_agent import (
TelegramAgent,
TelegramConfig,
)

__all__ = [
"DiscordAgent",
"DiscordConfig",
"ReplyMonitorConfig",
"SlackAgent",
"SlackConfig",
"TelegramAgent",
"TelegramConfig",
]
377 changes: 377 additions & 0 deletions autogen/agentchat/contrib/comms/comms_platform_agent.py

Large diffs are not rendered by default.

Loading
Loading