Fix small bugs in pyproject.tomls (#88)
``` authors = ["Arcade AI <dev@arcade-ai.com>"] ``` vs ``` authors = ["Arcade AI <dev@arcade-ai.com"] ``` There is also now a ``make`` command for ``make install-toolkits``
This commit is contained in:
parent
2625be80bd
commit
f3feb85239
12 changed files with 45 additions and 27 deletions
10
Makefile
10
Makefile
|
|
@ -6,6 +6,16 @@ install: ## Install the poetry environment and install the pre-commit hooks
|
||||||
@cd arcade && poetry install --all-extras
|
@cd arcade && poetry install --all-extras
|
||||||
@cd arcade && poetry run pre-commit install
|
@cd arcade && poetry run pre-commit install
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: install-toolkits
|
||||||
|
install-toolkits: ## Install dependencies for all toolkits
|
||||||
|
@echo "🚀 Installing dependencies for all toolkits"
|
||||||
|
@for dir in toolkits/*/ ; do \
|
||||||
|
echo "📦 Installing dependencies for $$dir"; \
|
||||||
|
(cd $$dir && poetry lock && poetry install); \
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: ## Run code quality tools.
|
check: ## Run code quality tools.
|
||||||
@echo "🚀 Checking Poetry lock file consistency with 'pyproject.toml': Running poetry check --lock"
|
@echo "🚀 Checking Poetry lock file consistency with 'pyproject.toml': Running poetry check --lock"
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,7 @@ def chat(
|
||||||
stream: bool = typer.Option(
|
stream: bool = typer.Option(
|
||||||
False, "-s", "--stream", is_flag=True, help="Stream the tool output."
|
False, "-s", "--stream", is_flag=True, help="Stream the tool output."
|
||||||
),
|
),
|
||||||
|
prompt: str = typer.Option(None, "--prompt", help="The system prompt to use for the chat."),
|
||||||
debug: bool = typer.Option(False, "--debug", "-d", help="Show debug information"),
|
debug: bool = typer.Option(False, "--debug", "-d", help="Show debug information"),
|
||||||
host: str = typer.Option(
|
host: str = typer.Option(
|
||||||
None,
|
None,
|
||||||
|
|
@ -219,23 +220,10 @@ def chat(
|
||||||
# start messages conversation
|
# start messages conversation
|
||||||
history: list[dict[str, Any]] = []
|
history: list[dict[str, Any]] = []
|
||||||
|
|
||||||
chat_header = Text.assemble(
|
if prompt:
|
||||||
"\n",
|
history.append({"role": "system", "content": prompt})
|
||||||
(
|
|
||||||
"=== Arcade AI Chat ===",
|
display_arcade_chat_header(config, stream)
|
||||||
"bold magenta underline",
|
|
||||||
),
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"Chatting with Arcade Engine at ",
|
|
||||||
(
|
|
||||||
config.engine_url,
|
|
||||||
"bold blue",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if stream:
|
|
||||||
chat_header.append(" (streaming)")
|
|
||||||
console.print(chat_header)
|
|
||||||
|
|
||||||
# Try to hit /health endpoint on engine and warn if it is down
|
# Try to hit /health endpoint on engine and warn if it is down
|
||||||
log_engine_health(client)
|
log_engine_health(client)
|
||||||
|
|
@ -332,6 +320,26 @@ def config(
|
||||||
raise typer.Exit(code=1)
|
raise typer.Exit(code=1)
|
||||||
|
|
||||||
|
|
||||||
|
def display_arcade_chat_header(config: Config, stream: bool) -> None:
|
||||||
|
chat_header = Text.assemble(
|
||||||
|
"\n",
|
||||||
|
(
|
||||||
|
"=== Arcade AI Chat ===",
|
||||||
|
"bold magenta underline",
|
||||||
|
),
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"Chatting with Arcade Engine at ",
|
||||||
|
(
|
||||||
|
config.engine_url,
|
||||||
|
"bold blue",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
if stream:
|
||||||
|
chat_header.append(" (streaming)")
|
||||||
|
console.print(chat_header)
|
||||||
|
|
||||||
|
|
||||||
def log_engine_health(client: Arcade) -> None:
|
def log_engine_health(client: Arcade) -> None:
|
||||||
try:
|
try:
|
||||||
client.health.check()
|
client.health.check()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_example_fastapi"
|
name = "arcade_example_fastapi"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "FastAPI example app with Arcade"
|
description = "FastAPI example app with Arcade"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_github"
|
name = "arcade_github"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "LLM tools for interacting with Github"
|
description = "LLM tools for interacting with Github"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_google"
|
name = "arcade_google"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Arcade tools for the entire google suite"
|
description = "Arcade tools for the entire google suite"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_linkedin"
|
name = "arcade_linkedin"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Arcade tools for LinkedIn"
|
description = "Arcade tools for LinkedIn"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_math"
|
name = "arcade_math"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Math toolkit for Arcade"
|
description = "Math toolkit for Arcade"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_search"
|
name = "arcade_search"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Tools for searching the web"
|
description = "Tools for searching the web"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_slack"
|
name = "arcade_slack"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Slack tools for LLMs"
|
description = "Slack tools for LLMs"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_spotify"
|
name = "arcade_spotify"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Arcade tools for Spotify"
|
description = "Arcade tools for Spotify"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_x"
|
name = "arcade_x"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "LLM tools for interacting with X (Twitter)"
|
description = "LLM tools for interacting with X (Twitter)"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "arcade_zoom"
|
name = "arcade_zoom"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Arcade tools for Zoom"
|
description = "Arcade tools for Zoom"
|
||||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue