Skip to content

Commit

Permalink
stub example
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBeebe committed Jul 2, 2024
1 parent 82178f7 commit 54447d6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/0-simple/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
start:
poetry run python src/main.py
27 changes: 27 additions & 0 deletions examples/0-simple/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[tool.poetry]
name = "ada-example-0-simple"
version = "0.1.0"
description = ""
authors = ["Will Beebe"]
packages = [
{include = "*", from="src"},
]

[tool.poetry.dependencies]
python = "^3.11"
ada = "^0.1.0"

[tool.poetry.dev-dependencies]
pytest = "^8.1.1"

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.ruff]
select = ["E", "F", "W", "I001"]
ignore = ["E501", "F541"]
fixable = ["W", "I001"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
6 changes: 6 additions & 0 deletions examples/0-simple/src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from ada.abcs import AnthropicLLM
from ada.agents import Ada

agent = Ada(client=AnthropicLLM())
response = agent.generate_text("Name five fruit that start with the letter a.")
print(response.content)

0 comments on commit 54447d6

Please sign in to comment.