Skip to content

Building AI agents, atomically

Improve quickstart example

KennyVaneetveldee9217271065b
diff --git a/atomic-examples/quickstart/poetry.lock b/atomic-examples/quickstart/poetry.lock
index 049075c..6afeba1 100644
--- a/atomic-examples/quickstart/poetry.lock
+++ b/atomic-examples/quickstart/poetry.lock
@@ -169,12 +169,12 @@ trio = ["trio (>=0.26.1)"]
[[package]]
name = "atomic-agents"
-version = "1.0.6"
+version = "1.0.7"
description = "A versatile framework for creating and managing intelligent agents."
optional = false
python-versions = ">=3.11,<4.0"
files = []
-develop = false
+develop = true
[package.dependencies]
gitpython = ">=3.1.43,<4.0.0"
@@ -1351,4 +1351,4 @@ propcache = ">=0.2.0"
[metadata]
lock-version = "2.0"
python-versions = "^3.11"
-content-hash = "f2b55dc03d96818e81c5351740a7fdd05588dc8a0e3b14b255ec603978a31cfa"
+content-hash = "2715a8bf2b609cccd0c86792a613a484c0de839d18c5a5abb5568841ffaf85b9"
diff --git a/atomic-examples/quickstart/pyproject.toml b/atomic-examples/quickstart/pyproject.toml
index cd6ffd7..7d7ec0c 100644
--- a/atomic-examples/quickstart/pyproject.toml
+++ b/atomic-examples/quickstart/pyproject.toml
@@ -7,7 +7,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
-atomic-agents = {path = "../.."}
+atomic-agents = {path = "../..", develop = true}
[build-system]
diff --git a/atomic-examples/quickstart/quickstart/main.py b/atomic-examples/quickstart/quickstart/main.py
index b48e827..5ec1942 100644
--- a/atomic-examples/quickstart/quickstart/main.py
+++ b/atomic-examples/quickstart/quickstart/main.py
@@ -56,14 +56,16 @@ agent = BaseAgent(
)
agent_message = Text(initial_memory[0]["content"], style="bold green")
-console.print(Text("Agent:", style="bold green"), agent_message, end="")
+console.print(Text("Agent:", style="bold green"), end=" ")
+console.print(agent_message)
while True:
- user_input = console.input("\n[bold blue]You:[/bold blue] ")
+ user_input = console.input("[bold blue]You:[/bold blue] ")
if user_input.lower() in ["/exit", "/quit"]:
console.print("Exiting chat...")
break
response = agent.run(agent.input_schema(chat_message=user_input))
agent_message = Text(response.chat_message, style="bold green")
- console.print(Text("Agent:", style="bold green"), agent_message, end="")
+ console.print(Text("Agent:", style="bold green"), end=" ")
+ console.print(agent_message)