Testing with qwen and updating tools
This commit is contained in:
+22
-13
@@ -13,40 +13,49 @@ class MetricsTool(BaseTool):
|
||||
def get_functions(self):
|
||||
return [
|
||||
{
|
||||
"name": "get_function_metrics",
|
||||
"description": "Get metrics for all measured functions.",
|
||||
"parameters": {
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_function_metrics",
|
||||
"description": "Get metrics for all measured functions.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "get_specific_function_metrics",
|
||||
"description": "Get metrics for a specific function.",
|
||||
"parameters": {
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_specific_function_metrics",
|
||||
"description": "Get metrics for a specific function.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"function_name": {
|
||||
"type": "string",
|
||||
"description": "Name of the function to get metrics for"
|
||||
"type": "string",
|
||||
"description": "Name of the function to get metrics for"
|
||||
}
|
||||
},
|
||||
"required": ["function_name"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "get_top_n_functions",
|
||||
"description": "Get the top N functions by total execution time.",
|
||||
"parameters": {
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_top_n_functions",
|
||||
"description": "Get the top N functions by total execution time.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"n": {
|
||||
"type": "integer",
|
||||
"description": "Number of top functions to retrieve"
|
||||
"type": "integer",
|
||||
"description": "Number of top functions to retrieve"
|
||||
}
|
||||
},
|
||||
"required": ["n"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user