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

[C#] feat: Add tools support to OAI models #2068

Merged
merged 25 commits into from
Oct 2, 2024
Merged

[C#] feat: Add tools support to OAI models #2068

merged 25 commits into from
Oct 2, 2024

Conversation

singhk97
Copy link
Collaborator

@singhk97 singhk97 commented Sep 30, 2024

Linked issues

closes: #1992

Details

Core implementation

  • Added tools support to the OpenAIModel class.
  • Added ToolsAugmentation.cs
  • Added a ChatMessageJsonConvertor which serializes/deserializes the ChatMessage object.
  • In ChatMessage, made ToolCalls, FunctionCall and ToolCallId obsolete. It's replaced with ActionCalls and ActionCallId.

Samples

  • Updated list bot, light bot & devOps bot samples.

Other changes

  • Bumped Azure.AI.OpenAI to v2.0.0-beta.5
  • Bumped OpenAI to v2.0.0-beta.11

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@singhk97 singhk97 changed the title [C#] feat: Add tools support to OAI models [C#] feat: Add tools support to OAI models Sep 30, 2024
corinagum
corinagum previously approved these changes Oct 1, 2024
Copy link
Contributor

@lilyydu lilyydu left a comment

Choose a reason for hiding this comment

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

LGTM, just minor accidental commit with the YMLs

@singhk97 singhk97 merged commit 31dbd0e into main Oct 2, 2024
10 checks passed
@singhk97 singhk97 deleted the kavin/c#-tools branch October 2, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C#]: Add tools support to OAI models
3 participants