Skip to content

Commit 684b766

Browse files
committed
ada init
1 parent acbe32d commit 684b766

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+6901
-1
lines changed

.github/workflows/publish.yaml

Whitespace-only changes.

.gitignore

Lines changed: 405 additions & 0 deletions
Large diffs are not rendered by default.

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/charliermarsh/ruff-pre-commit
3+
rev: "v0.0.272"
4+
hooks:
5+
- id: ruff
6+
args: ["--fix"]

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test:
2+
poetry run test

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# ada-python
1+
# ada abcs
2+
3+
https://pytest-with-eric.com/automation/pytest-tox-poetry/

data/__init__.py

Whitespace-only changes.

data/anthropic.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[
2+
{
3+
"name": "get_weather",
4+
"description": "Get the current weather in a given location. If the unit isn't specified, use f.",
5+
"input_schema": {
6+
"type": "object",
7+
"properties": {
8+
"city": {
9+
"type": "string",
10+
"description": "The city e.g. San Francisco"
11+
},
12+
"state": {
13+
"type": "string",
14+
"description": "The state e.g. California"
15+
},
16+
"units": {
17+
"type": "string",
18+
"description": "The temperature unit to use",
19+
"enum": ["c", "f"]
20+
}
21+
},
22+
"required": ["city", "state", "units"]
23+
}
24+
},
25+
{
26+
"name": "update_file",
27+
"description": "Write information to a file",
28+
"input_schema": {
29+
"type": "object",
30+
"properties": {
31+
"path": {
32+
"type": "string",
33+
"description": "The filepath of the file"
34+
},
35+
"content": {
36+
"type": "string",
37+
"description": "The desired contents of the file"
38+
}
39+
},
40+
"required": ["path", "content"]
41+
}
42+
},
43+
{
44+
"name": "install_npm_package",
45+
"description": "Install an npm package. Think about if the package is normally a production or development dependency.",
46+
"input_schema": {
47+
"type": "object",
48+
"properties": {
49+
"package": {
50+
"type": "string",
51+
"description": "The npm package to install"
52+
},
53+
"development": {
54+
"type": "boolean",
55+
"description": "Whether or not to save this package as a development package"
56+
}
57+
},
58+
"required": ["package", "development"]
59+
}
60+
},
61+
{
62+
"name": "get_current_location",
63+
"description": "Gets the current location of the user",
64+
"input_schema": {
65+
"type": "object",
66+
"properties": {},
67+
"required": []
68+
}
69+
}
70+
]

data/cohere.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[
2+
{
3+
"name": "get_weather",
4+
"description": "Get the current weather in a given location. If the unit isn't specified, use f.",
5+
"parameter_definitions": {
6+
"city": {
7+
"type": "str",
8+
"description": "The city e.g. San Francisco",
9+
"required": true
10+
},
11+
"state": {
12+
"type": "str",
13+
"description": "The state e.g. California",
14+
"required": true
15+
},
16+
"units": {
17+
"type": "str",
18+
"description": "The temperature unit to use",
19+
"required": true,
20+
"enum": ["c", "f"]
21+
}
22+
}
23+
}
24+
]

data/gemini.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"function_declarations": [
3+
{
4+
"name": "get_weather",
5+
"description": "Get the current weather in a given location. If the unit isn't specified, use f.",
6+
"parameters": {
7+
"type": "OBJECT",
8+
"properties": {
9+
"city": {
10+
"type": "string",
11+
"description": "The city e.g. San Francisco"
12+
},
13+
"state": {
14+
"type": "string",
15+
"description": "The state e.g. California"
16+
},
17+
"units": {
18+
"type": "string",
19+
"description": "The temperature unit to use",
20+
"enum": ["c", "f"]
21+
}
22+
},
23+
"required": ["city", "state", "units"]
24+
}
25+
}
26+
]
27+
}

data/google.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "getCurrentWeather",
3+
"description": "Get the weather in location",
4+
"parameters": {
5+
"type": "OBJECT",
6+
"properties": {
7+
"city": {
8+
"type": "string",
9+
"description": "The city e.g. San Francisco"
10+
},
11+
"state": {
12+
"type": "string",
13+
"description": "The state e.g. California"
14+
},
15+
"unit": {
16+
"type": "string",
17+
"description": "The temperature unit to use",
18+
"enum": ["c", "f"]
19+
}
20+
},
21+
"required": ["city", "state", "unit"]
22+
}
23+
}

0 commit comments

Comments
 (0)