semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: Azure AI Inference Function Calling

Open TaoChenOSU opened this issue 1 year ago • 1 comments

Motivation and Context

Now that the Function Choice abstraction has been implemented in Python, it is time to extend this feature to other connectors. The first (OAI and AOAI are not included) connector to be granted this honor is the Azure AI Inference connector.

Description

  1. Add function calling to Azure AI Inference.

Contribution Checklist

TaoChenOSU avatar Jul 01 '24 22:07 TaoChenOSU

Py3.10 Test Coverage

Python 3.10 Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/connectors/ai
   function_calling_utils.py10370%16–22
semantic_kernel/connectors/ai/azure_ai_inference/services
   azure_ai_inference_chat_completion.py1417646%133–159, 187–206, 233–244, 253–289, 295–306, 326–348, 370–373, 402–411, 419, 434–436, 454
   utils.py402342%39, 57–71, 83–102, 114–127
semantic_kernel/connectors/ai/open_ai/services
   open_ai_chat_completion_base.py1687058%93, 97, 117, 142–146, 171, 179, 181, 185, 203–208, 226–254, 257–268, 283–290, 301–309, 325–332, 353, 361, 367–370, 382–385, 416
TOTAL680463391% 

Python 3.10 Unit Test Overview

Tests Skipped Failures Errors Time
1679 1 :zzz: 0 :x: 0 :fire: 27.797s :stopwatch:

markwallace-microsoft avatar Jul 02 '24 21:07 markwallace-microsoft

might be worth the effort to go already do a mypy and test coverage check on this!

Will do it after my current Ollama work

TaoChenOSU avatar Jul 08 '24 19:07 TaoChenOSU