ailtir-cli 2.3.1__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ailtir_cli-2.3.1/src/ailtir_cli.egg-info → ailtir_cli-2.4.0}/PKG-INFO +8 -6
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/README.md +7 -5
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/pyproject.toml +1 -1
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/app.py +2 -2
- ailtir_cli-2.4.0/src/ailtir_cli/commands/__init__.py +1 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/get.py +2 -3
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/main.py +0 -1
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0/src/ailtir_cli.egg-info}/PKG-INFO +8 -6
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/SOURCES.txt +0 -3
- ailtir_cli-2.3.1/src/ailtir_cli/commands/__init__.py +0 -4
- ailtir_cli-2.3.1/src/ailtir_cli/commands/agents/__init__.py +0 -6
- ailtir_cli-2.3.1/src/ailtir_cli/commands/agents/profiler.py +0 -42
- ailtir_cli-2.3.1/src/ailtir_cli/commands/agents/researcher.py +0 -36
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/LICENSE +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/setup.cfg +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/__init__.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/__init__.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/analyse.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/chat.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/list_kbs.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/upload.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/__init__.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/delete.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/version.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli/config.py +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/dependency_links.txt +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/entry_points.txt +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/requires.txt +0 -0
- {ailtir_cli-2.3.1 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ailtir-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Ailtir CLI — upload, analyse, list, and chat with knowledge bases
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://ailtir.ai
|
|
@@ -19,15 +19,17 @@ Dynamic: license-file
|
|
|
19
19
|
|
|
20
20
|
# ailtir-cli
|
|
21
21
|
|
|
22
|
-
A CLI tool for interacting with Ailtir knowledge bases
|
|
22
|
+
A CLI tool for interacting with Ailtir knowledge bases and user profiles from
|
|
23
|
+
the terminal.
|
|
23
24
|
|
|
24
25
|
## What is ailtir-cli?
|
|
25
26
|
|
|
26
27
|
The Ailtir CLI provides commands for:
|
|
27
|
-
- **upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
28
|
-
- **analyse**: Trigger knowledge base creation and analysis
|
|
29
|
-
- **list**: List all knowledge bases in your account
|
|
30
|
-
- **chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
28
|
+
- **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
29
|
+
- **kbs analyse**: Trigger knowledge base creation and analysis
|
|
30
|
+
- **kbs list**: List all knowledge bases in your account
|
|
31
|
+
- **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
32
|
+
- **profiles get/delete**: Manage the authenticated user's profile
|
|
31
33
|
- **version**: Print the CLI version
|
|
32
34
|
|
|
33
35
|
## Installation
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# ailtir-cli
|
|
2
2
|
|
|
3
|
-
A CLI tool for interacting with Ailtir knowledge bases
|
|
3
|
+
A CLI tool for interacting with Ailtir knowledge bases and user profiles from
|
|
4
|
+
the terminal.
|
|
4
5
|
|
|
5
6
|
## What is ailtir-cli?
|
|
6
7
|
|
|
7
8
|
The Ailtir CLI provides commands for:
|
|
8
|
-
- **upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
9
|
-
- **analyse**: Trigger knowledge base creation and analysis
|
|
10
|
-
- **list**: List all knowledge bases in your account
|
|
11
|
-
- **chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
9
|
+
- **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
10
|
+
- **kbs analyse**: Trigger knowledge base creation and analysis
|
|
11
|
+
- **kbs list**: List all knowledge bases in your account
|
|
12
|
+
- **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
13
|
+
- **profiles get/delete**: Manage the authenticated user's profile
|
|
12
14
|
- **version**: Print the CLI version
|
|
13
15
|
|
|
14
16
|
## Installation
|
|
@@ -3,7 +3,6 @@ import sys
|
|
|
3
3
|
import typer
|
|
4
4
|
from rich.console import Console
|
|
5
5
|
|
|
6
|
-
from ailtir_cli.commands.agents import agents_app
|
|
7
6
|
from ailtir_cli.commands.kbs import kbs_app
|
|
8
7
|
from ailtir_cli.commands.profiles import profiles_app
|
|
9
8
|
|
|
@@ -11,10 +10,11 @@ _console = Console(stderr=True)
|
|
|
11
10
|
_DOCS_URL = "https://team-ailtir.github.io/ailtir-cli/"
|
|
12
11
|
|
|
13
12
|
app = typer.Typer(name="ailtir", help="The Ailtir CLI", no_args_is_help=True)
|
|
14
|
-
app.add_typer(agents_app, name="agents")
|
|
15
13
|
app.add_typer(kbs_app, name="kbs")
|
|
16
14
|
app.add_typer(profiles_app, name="profiles")
|
|
17
15
|
|
|
16
|
+
import ailtir_cli.commands.version # noqa: E402,F401
|
|
17
|
+
|
|
18
18
|
|
|
19
19
|
@app.callback()
|
|
20
20
|
def _check_config(ctx: typer.Context) -> None:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Command package for ailtir-cli."""
|
|
@@ -27,6 +27,5 @@ def get() -> None:
|
|
|
27
27
|
raise typer.Exit(1) from exc
|
|
28
28
|
|
|
29
29
|
data = resp.json()
|
|
30
|
-
_log.info("profiles.get.complete")
|
|
31
|
-
_console.
|
|
32
|
-
_console.print(f"[green]user_id[/green]: {data.get('user_id', '')}")
|
|
30
|
+
_log.info("profiles.get.complete", response=data)
|
|
31
|
+
_console.print_json(data=data.get("profile"))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ailtir-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Ailtir CLI — upload, analyse, list, and chat with knowledge bases
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://ailtir.ai
|
|
@@ -19,15 +19,17 @@ Dynamic: license-file
|
|
|
19
19
|
|
|
20
20
|
# ailtir-cli
|
|
21
21
|
|
|
22
|
-
A CLI tool for interacting with Ailtir knowledge bases
|
|
22
|
+
A CLI tool for interacting with Ailtir knowledge bases and user profiles from
|
|
23
|
+
the terminal.
|
|
23
24
|
|
|
24
25
|
## What is ailtir-cli?
|
|
25
26
|
|
|
26
27
|
The Ailtir CLI provides commands for:
|
|
27
|
-
- **upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
28
|
-
- **analyse**: Trigger knowledge base creation and analysis
|
|
29
|
-
- **list**: List all knowledge bases in your account
|
|
30
|
-
- **chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
28
|
+
- **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
|
|
29
|
+
- **kbs analyse**: Trigger knowledge base creation and analysis
|
|
30
|
+
- **kbs list**: List all knowledge bases in your account
|
|
31
|
+
- **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
|
|
32
|
+
- **profiles get/delete**: Manage the authenticated user's profile
|
|
31
33
|
- **version**: Print the CLI version
|
|
32
34
|
|
|
33
35
|
## Installation
|
|
@@ -13,9 +13,6 @@ src/ailtir_cli.egg-info/requires.txt
|
|
|
13
13
|
src/ailtir_cli.egg-info/top_level.txt
|
|
14
14
|
src/ailtir_cli/commands/__init__.py
|
|
15
15
|
src/ailtir_cli/commands/version.py
|
|
16
|
-
src/ailtir_cli/commands/agents/__init__.py
|
|
17
|
-
src/ailtir_cli/commands/agents/profiler.py
|
|
18
|
-
src/ailtir_cli/commands/agents/researcher.py
|
|
19
16
|
src/ailtir_cli/commands/kbs/__init__.py
|
|
20
17
|
src/ailtir_cli/commands/kbs/analyse.py
|
|
21
18
|
src/ailtir_cli/commands/kbs/chat.py
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import httpx
|
|
2
|
-
import structlog
|
|
3
|
-
import typer
|
|
4
|
-
from rich.console import Console
|
|
5
|
-
|
|
6
|
-
from ailtir_cli.commands.agents import agents_app
|
|
7
|
-
from ailtir_cli.config import settings
|
|
8
|
-
|
|
9
|
-
_log = structlog.get_logger(__name__)
|
|
10
|
-
_console = Console()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@agents_app.command()
|
|
14
|
-
def profiler(
|
|
15
|
-
prompt: str = typer.Argument(None, help="Optional prompt for the profiler agent."),
|
|
16
|
-
url: str = typer.Argument(None, help="Optional company URL to profile."),
|
|
17
|
-
) -> None:
|
|
18
|
-
"""Run the profiler agent with an optional prompt and company URL."""
|
|
19
|
-
_console.print("Profiling...")
|
|
20
|
-
|
|
21
|
-
token = settings.ailtir_cli_api_token
|
|
22
|
-
body: dict = {}
|
|
23
|
-
if prompt is not None:
|
|
24
|
-
body["prompt"] = prompt
|
|
25
|
-
if url is not None:
|
|
26
|
-
body["company_url"] = url
|
|
27
|
-
|
|
28
|
-
with httpx.Client(base_url=settings.cli_api_url, timeout=120.0) as http:
|
|
29
|
-
try:
|
|
30
|
-
resp = http.post(
|
|
31
|
-
"/agents/profiler",
|
|
32
|
-
json=body,
|
|
33
|
-
headers={"Authorization": f"Bearer {token}"},
|
|
34
|
-
)
|
|
35
|
-
resp.raise_for_status()
|
|
36
|
-
except httpx.HTTPStatusError as exc:
|
|
37
|
-
_console.print(f"[red]Error: {exc.response.status_code}[/red]")
|
|
38
|
-
raise typer.Exit(1) from exc
|
|
39
|
-
|
|
40
|
-
job_id = resp.json().get("job_id", "")
|
|
41
|
-
_log.info("agents.profiler.started", job_id=job_id)
|
|
42
|
-
_console.print(f"[green]Profiler job started.[/green] job_id: [bold]{job_id}[/bold]")
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import httpx
|
|
2
|
-
import structlog
|
|
3
|
-
import typer
|
|
4
|
-
from rich.console import Console
|
|
5
|
-
|
|
6
|
-
from ailtir_cli.commands.agents import agents_app
|
|
7
|
-
from ailtir_cli.config import settings
|
|
8
|
-
|
|
9
|
-
_log = structlog.get_logger(__name__)
|
|
10
|
-
_console = Console()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@agents_app.command()
|
|
14
|
-
def researcher(
|
|
15
|
-
topic: str = typer.Argument(..., help="The topic to research."),
|
|
16
|
-
) -> None:
|
|
17
|
-
"""Run the researcher agent on a given topic."""
|
|
18
|
-
_console.print(f"Researching: [bold]{topic}[/bold]...")
|
|
19
|
-
|
|
20
|
-
token = settings.ailtir_cli_api_token
|
|
21
|
-
|
|
22
|
-
with httpx.Client(base_url=settings.cli_api_url, timeout=120.0) as http:
|
|
23
|
-
try:
|
|
24
|
-
resp = http.post(
|
|
25
|
-
"/agents/researcher",
|
|
26
|
-
json={"topic": topic},
|
|
27
|
-
headers={"Authorization": f"Bearer {token}"},
|
|
28
|
-
)
|
|
29
|
-
resp.raise_for_status()
|
|
30
|
-
except httpx.HTTPStatusError as exc:
|
|
31
|
-
_console.print(f"[red]Error: {exc.response.status_code}[/red]")
|
|
32
|
-
raise typer.Exit(1) from exc
|
|
33
|
-
|
|
34
|
-
data = resp.json()
|
|
35
|
-
_log.info("agents.researcher.complete", topic=topic)
|
|
36
|
-
_console.print(data.get("result", "No result returned."))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|