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

Python: slight improvements in kernel and function result content, sample of local function calling with Nexus Raven #6982

Merged
merged 9 commits into from
Jun 28, 2024

Conversation

eavanvalkenburg
Copy link
Member

@eavanvalkenburg eavanvalkenburg commented Jun 27, 2024

Motivation and Context

This introduces a sample that uses function calling with a local model, Nexus Raven V2, in this case using the API, but the same model can be loaded using the Hugging Face Connection, the class here is highly adapted and specific to Nexus including parsing the returned function call value, into FunctionCallContent and then running that.
It then returns one or more ChatMessageContents with the function call content and function result content which can then be shared with a OpenAI call.

Error handling improvements:

Minor changes:

Closes #6804
Closes #6944

Description

Contribution Checklist

@eavanvalkenburg eavanvalkenburg requested a review from a team as a code owner June 27, 2024 08:41
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Jun 27, 2024
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jun 27, 2024

Py3.10 Test Coverage

Python 3.10 Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel
   kernel.py1577254%145, 152–161, 199–207, 278–314, 342, 344–348, 364–408, 412–423
semantic_kernel/contents
   chat_message_content.py124199%234
   function_result_content.py732171%57, 62, 66, 81, 96, 99, 101, 103–109, 126, 131, 138–142
semantic_kernel/functions
   kernel_function_from_prompt.py154795%165–166, 180, 200, 218, 238, 321
TOTAL668678188% 

Python 3.10 Unit Test Overview

Tests Skipped Failures Errors Time
1567 1 💤 0 ❌ 0 🔥 18.949s ⏱️

@eavanvalkenburg eavanvalkenburg force-pushed the nexusraven branch 2 times, most recently from 509390b to 7b5303f Compare June 27, 2024 12:49
@moonbox3 moonbox3 enabled auto-merge June 28, 2024 15:27
@moonbox3 moonbox3 added this pull request to the merge queue Jun 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 28, 2024
@eavanvalkenburg eavanvalkenburg added this pull request to the merge queue Jun 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 28, 2024
@eavanvalkenburg eavanvalkenburg added this pull request to the merge queue Jun 28, 2024
Merged via the queue into microsoft:main with commit fe38a5f Jun 28, 2024
23 checks passed
@eavanvalkenburg eavanvalkenburg deleted the nexusraven branch June 28, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
Status: Sprint: Done
5 participants