​call_me_maybe /
data / input / functions_definition.json
52 commits
20-07-2026
71 lines 1.3 kB
 1[
 2  {
 3    "name": "fn_add_numbers",
 4    "description": "Add two numbers together and return their sum.",
 5    "parameters": {
 6      "a": {
 7        "type": "number"
 8      },
 9      "b": {
10        "type": "number"
11      }
12    },
13    "returns": {
14      "type": "number"
15    }
16  },
17  {
18    "name": "fn_greet",
19    "description": "Generate a greeting message for a person by name.",
20    "parameters": {
21      "name": {
22        "type": "string"
23      }
24    },
25    "returns": {
26      "type": "string"
27    }
28  },
29  {
30    "name": "fn_reverse_string",
31    "description": "Reverse a string and return the reversed result.",
32    "parameters": {
33      "s": {
34        "type": "string"
35      }
36    },
37    "returns": {
38      "type": "string"
39    }
40  },
41  {
42    "name": "fn_get_square_root",
43    "description": "Calculate the square root of a number.",
44    "parameters": {
45      "a": {
46        "type": "number"
47      }
48    },
49    "returns": {
50      "type": "number"
51    }
52  },
53  {
54    "name": "fn_substitute_string_with_regex",
55    "description": "Replace all occurrences matching a regex pattern in a string.",
56    "parameters": {
57      "source_string": {
58        "type": "string"
59      },
60      "regex": {
61        "type": "string"
62      },
63      "replacement": {
64        "type": "string"
65      }
66    },
67    "returns": {
68      "type": "string"
69    }
70  }
71]