diff --git a/examples/0-simple/Makefile b/examples/0-simple/Makefile new file mode 100644 index 0000000..77a3925 --- /dev/null +++ b/examples/0-simple/Makefile @@ -0,0 +1,2 @@ +start: + poetry run python src/main.py diff --git a/examples/0-simple/pyproject.toml b/examples/0-simple/pyproject.toml new file mode 100644 index 0000000..ddfee14 --- /dev/null +++ b/examples/0-simple/pyproject.toml @@ -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" diff --git a/examples/0-simple/src/main.py b/examples/0-simple/src/main.py new file mode 100644 index 0000000..9804a1a --- /dev/null +++ b/examples/0-simple/src/main.py @@ -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)