add tests

This commit is contained in:
Adil Hafeez 2025-03-19 17:04:46 -07:00
parent 4489b13826
commit cafcd98cea
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
5 changed files with 257 additions and 227 deletions

View file

@ -5,7 +5,7 @@ tools = [
"parameters": {
"type": "object",
"properties": {
"account_id": {"type": "string", "description": "The account ID"}
"account_id": {"type": "str", "description": "The account ID"}
},
"required": ["account_id"],
},
@ -17,14 +17,14 @@ tools = [
"type": "object",
"properties": {
"from_account": {
"type": "string",
"type": "str",
"description": "The account to transfer from",
},
"to_account": {
"type": "string",
"type": "str",
"description": "The account to transfer to",
},
"amount": {"type": "number", "description": "The amount to transfer"},
"amount": {"type": "int", "description": "The amount to transfer"},
},
"required": ["from_account", "to_account", "amount"],
},
@ -35,13 +35,13 @@ tools = [
"parameters": {
"type": "object",
"properties": {
"account_id": {"type": "string", "description": "The account ID"},
"account_id": {"type": "str", "description": "The account ID"},
"start_date": {
"type": "string",
"type": "str",
"description": "The start date of the transactions",
},
"end_date": {
"type": "string",
"type": "str",
"description": "The end date of the transactions",
},
},

View file

@ -6,12 +6,12 @@ tools = [
"type": "object",
"properties": {
"from_currency": {
"type": "string",
"type": "str",
"description": "The currency to convert from",
"default": "USD",
},
"to_currency": {
"type": "string",
"type": "str",
"description": "The currency to convert to",
},
},

View file

@ -5,7 +5,7 @@ tools = [
"parameters": {
"type": "object",
"properties": {
"address": {"type": "string", "description": "The address to verify"}
"address": {"type": "str", "description": "The address to verify"}
},
"required": ["address"],
},
@ -17,7 +17,7 @@ tools = [
"type": "object",
"properties": {
"tracking_number": {
"type": "string",
"type": "str",
"description": "The tracking number",
}
},
@ -30,13 +30,13 @@ tools = [
"parameters": {
"type": "object",
"properties": {
"sender": {"type": "string", "description": "The address to ship from"},
"sender": {"type": "str", "description": "The address to ship from"},
"recipient": {
"type": "string",
"type": "str",
"description": "The address to ship to",
},
"weight": {
"type": "number",
"type": "int",
"description": "The weight of the package",
},
},
@ -49,13 +49,13 @@ tools = [
"parameters": {
"type": "object",
"properties": {
"sender": {"type": "string", "description": "The address to ship from"},
"sender": {"type": "str", "description": "The address to ship from"},
"recipient": {
"type": "string",
"type": "str",
"description": "The address to ship to",
},
"weight": {
"type": "number",
"type": "int",
"description": "The weight of the package",
},
},