Skip to content

.Net: Add invoke overloads for string and no message. #11219

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

Merged

Conversation

westey-m
Copy link
Contributor

Motivation and Context

Most invocations take a user message as input, so supporting just passing the string is useful.
Some agents support invoking the agent without any message, so adding explicit support for this is useful.

Description

Add invoke overloads for string and no message.

Contribution Checklist

@westey-m westey-m requested a review from a team as a code owner March 26, 2025 19:49
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Mar 26, 2025
@github-actions github-actions bot changed the title Add invoke overloads for string and no message. .Net: Add invoke overloads for string and no message. Mar 26, 2025
@westey-m westey-m added this pull request to the merge queue Mar 27, 2025
Merged via the queue into microsoft:main with commit d35d0c9 Mar 27, 2025
20 checks passed
@westey-m westey-m deleted the common-agent-api-stringemptyoverloads branch March 27, 2025 09:32
/// <summary>
/// Invoke the agent with the provided message and arguments.
/// </summary>
/// <param name="message">The message to pass to the agent.</param>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps be explicit that this will be treated as a user message

glorious-beard pushed a commit to glorious-beard/semantic-kernel that referenced this pull request Apr 6, 2025
### Motivation and Context

Most invocations take a user message as input, so supporting just
passing the string is useful.
Some agents support invoking the agent without any message, so adding
explicit support for this is useful.

### Description

Add invoke overloads for string and no message.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants