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

feat: add support for list of messages as team task input #4500

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iamarunbrahma
Copy link

Why are these changes needed?

Currently, a team only supports a single message as input for a task. This limits the ability to prepopulate context for agents, especially when working with previous conversation histories or nested chats. This PR adds support for passing a list of messages as task input, enabling better integration with applications where users might type multiple messages before triggering the team run.

Key changes:

  • Added support for list[ChatMessage] as valid task input
  • Messages are processed sequentially, maintaining conversation flow
  • Added validation for message lists (empty lists, invalid message types)
  • Maintained backward compatibility with existing string and single message inputs
  • Added comprehensive test coverage for the new functionality

Related issue number

Fixes #4472

Checks

@iamarunbrahma
Copy link
Author

@microsoft-github-policy-service agree

@gagb gagb added the group chat/teams group-chat-related issues label Dec 4, 2024
@ekzhu
Copy link
Collaborator

ekzhu commented Dec 4, 2024

Thanks @iamarunbrahma for the PR. It's a good start, but to finish it is going to be some more work. Please let us know ASAP when you are blocked.

please also review the Python development guide under python directory.

@iamarunbrahma
Copy link
Author

Thanks @iamarunbrahma for the PR. It's a good start, but to finish it is going to be some more work. Please let us know ASAP when you are blocked.

please also review the Python development guide under python directory.

Thanks @ekzhu , yes I have reviewed the python development guide. Kindly, review the updated PR and let me know if you have any more suggesstions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group chat/teams group-chat-related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Team to support a list of messages as input to a task
3 participants