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 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
|
||||
check: ## Run code quality tools.
|
||||
@echo "🚀 Checking Poetry lock file consistency with 'pyproject.toml': Running poetry check --lock"
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@ def chat(
|
|||
stream: bool = typer.Option(
|
||||
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"),
|
||||
host: str = typer.Option(
|
||||
None,
|
||||
|
|
@ -219,23 +220,10 @@ def chat(
|
|||
# start messages conversation
|
||||
history: list[dict[str, Any]] = []
|
||||
|
||||
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)
|
||||
if prompt:
|
||||
history.append({"role": "system", "content": prompt})
|
||||
|
||||
display_arcade_chat_header(config, stream)
|
||||
|
||||
# Try to hit /health endpoint on engine and warn if it is down
|
||||
log_engine_health(client)
|
||||
|
|
@ -332,6 +320,26 @@ def config(
|
|||
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:
|
||||
try:
|
||||
client.health.check()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_example_fastapi"
|
||||
version = "0.1.0"
|
||||
description = "FastAPI example app with Arcade"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_github"
|
||||
version = "0.1.0"
|
||||
description = "LLM tools for interacting with Github"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_google"
|
||||
version = "0.1.0"
|
||||
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]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_linkedin"
|
||||
version = "0.1.0"
|
||||
description = "Arcade tools for LinkedIn"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_math"
|
||||
version = "0.1.0"
|
||||
description = "Math toolkit for Arcade"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_search"
|
||||
version = "0.1.0"
|
||||
description = "Tools for searching the web"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_slack"
|
||||
version = "0.1.0"
|
||||
description = "Slack tools for LLMs"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_spotify"
|
||||
version = "0.1.0"
|
||||
description = "Arcade tools for Spotify"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_x"
|
||||
version = "0.1.0"
|
||||
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]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "arcade_zoom"
|
||||
version = "0.1.0"
|
||||
description = "Arcade tools for Zoom"
|
||||
authors = ["Arcade AI <dev@arcade-ai.com"]
|
||||
authors = ["Arcade AI <dev@arcade-ai.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
|||
Loading…
Reference in a new issue