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#]: Add tools support to OAI models #1992

Closed
Tracked by #1095
singhk97 opened this issue Sep 5, 2024 · 0 comments · Fixed by #2068
Closed
Tracked by #1095

[C#]: Add tools support to OAI models #1992

singhk97 opened this issue Sep 5, 2024 · 0 comments · Fixed by #2068
Assignees
Labels
.NET Pull requests that update .net code small tshirt size small (1-4 days)

Comments

@singhk97
Copy link
Collaborator

singhk97 commented Sep 5, 2024

#1699
#1576

@singhk97 singhk97 changed the title [C#]: Add tools suppor to OAI models [C#]: Add tools support to OAI models Sep 5, 2024
@singhk97 singhk97 self-assigned this Sep 5, 2024
@singhk97 singhk97 added .NET Pull requests that update .net code small tshirt size small (1-4 days) labels Sep 5, 2024
singhk97 added a commit that referenced this issue Oct 2, 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

- [x] 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

---------

Co-authored-by: Corina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Pull requests that update .net code small tshirt size small (1-4 days)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant