8000 GitHub - tommasodotNET/sk-agent-func-test
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tommasodotNET/sk-agent-func-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo shows hot to implement a Unit Test suite for ChatCompletionAgents in Python. Achieving the correct behavior of the agents is crucial for ensuring that they perform as expected in various scenarios. Often, this involves testing the agents' ability to invoke the correct tools based on a certain input.

Unit Test Suite for ChatCompletionAgents

In the kernel, I add a function filter to collect all the functions that are selected by the LLM. This allows us to test the agents' behavior by checking if the correct functions are invoked based on the input provided.

Setup and run the sample

  1. Fill in the appsettings.json file with the correct values:
{
    "AzureOpenAI":
    {
        "Endpoint": "https://<YOUR_ENDPONIT>.openai.azure.com/",
        "ApiKey": "<YOUR_KEY>",
        "DeploymentName": "gpt-4o"
    }
}

Note that this sample is set to use Azure OpenAI. To use other LLM providers, you may refer to the official Semantic Kernel documentation.

  1. Run the tests in the MathAgentTest project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0