Skip to content

Commit 54447d6

Browse files
committed
stub example
1 parent 82178f7 commit 54447d6

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

examples/0-simple/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
start:
2+
poetry run python src/main.py

examples/0-simple/pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[tool.poetry]
2+
name = "ada-example-0-simple"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Will Beebe"]
6+
packages = [
7+
{include = "*", from="src"},
8+
]
9+
10+
[tool.poetry.dependencies]
11+
python = "^3.11"
12+
ada = "^0.1.0"
13+
14+
[tool.poetry.dev-dependencies]
15+
pytest = "^8.1.1"
16+
17+
[tool.pytest.ini_options]
18+
testpaths = ["tests"]
19+
20+
[tool.ruff]
21+
select = ["E", "F", "W", "I001"]
22+
ignore = ["E501", "F541"]
23+
fixable = ["W", "I001"]
24+
25+
[build-system]
26+
requires = ["poetry-core"]
27+
build-backend = "poetry.core.masonry.api"

examples/0-simple/src/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from ada.abcs import AnthropicLLM
2+
from ada.agents import Ada
3+
4+
agent = Ada(client=AnthropicLLM())
5+
response = agent.generate_text("Name five fruit that start with the letter a.")
6+
print(response.content)

0 commit comments

Comments
 (0)