janito 2.2.0__py3-none-any.whl → 2.3.1__py3-none-any.whl

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.
Files changed (57) hide show
  1. janito/__init__.py +1 -1
  2. janito/agent/setup_agent.py +14 -5
  3. janito/agent/templates/profiles/system_prompt_template_main.txt.j2 +3 -1
  4. janito/cli/chat_mode/bindings.py +6 -0
  5. janito/cli/chat_mode/session.py +16 -0
  6. janito/cli/chat_mode/shell/commands/__init__.py +3 -0
  7. janito/cli/chat_mode/shell/commands/exec.py +27 -0
  8. janito/cli/chat_mode/shell/commands/tools.py +17 -6
  9. janito/cli/chat_mode/shell/session/manager.py +1 -0
  10. janito/cli/chat_mode/toolbar.py +1 -0
  11. janito/cli/cli_commands/model_utils.py +95 -84
  12. janito/cli/config.py +2 -1
  13. janito/cli/core/getters.py +33 -31
  14. janito/cli/core/runner.py +165 -148
  15. janito/cli/core/setters.py +5 -1
  16. janito/cli/main_cli.py +12 -1
  17. janito/cli/prompt_core.py +5 -2
  18. janito/cli/rich_terminal_reporter.py +22 -3
  19. janito/cli/single_shot_mode/handler.py +11 -1
  20. janito/cli/verbose_output.py +1 -1
  21. janito/config_manager.py +112 -110
  22. janito/driver_events.py +14 -0
  23. janito/drivers/azure_openai/driver.py +38 -3
  24. janito/drivers/driver_registry.py +0 -2
  25. janito/drivers/openai/driver.py +196 -36
  26. janito/llm/auth.py +63 -62
  27. janito/llm/driver.py +7 -1
  28. janito/llm/driver_config.py +1 -0
  29. janito/provider_config.py +7 -3
  30. janito/provider_registry.py +18 -0
  31. janito/providers/__init__.py +1 -0
  32. janito/providers/anthropic/provider.py +4 -2
  33. janito/providers/azure_openai/model_info.py +16 -15
  34. janito/providers/azure_openai/provider.py +33 -2
  35. janito/providers/deepseek/provider.py +3 -0
  36. janito/providers/google/model_info.py +21 -29
  37. janito/providers/google/provider.py +52 -38
  38. janito/providers/mistralai/provider.py +5 -2
  39. janito/providers/openai/provider.py +4 -0
  40. janito/providers/provider_static_info.py +2 -3
  41. janito/tools/adapters/local/adapter.py +33 -11
  42. janito/tools/adapters/local/delete_text_in_file.py +4 -7
  43. janito/tools/adapters/local/move_file.py +3 -13
  44. janito/tools/adapters/local/remove_directory.py +6 -17
  45. janito/tools/adapters/local/remove_file.py +4 -10
  46. janito/tools/adapters/local/replace_text_in_file.py +6 -9
  47. janito/tools/adapters/local/search_text/match_lines.py +1 -1
  48. janito/tools/tools_adapter.py +78 -6
  49. janito/version.py +1 -1
  50. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/METADATA +149 -10
  51. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/RECORD +55 -56
  52. janito/drivers/google_genai/driver.py +0 -54
  53. janito/drivers/google_genai/schema_generator.py +0 -67
  54. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/WHEEL +0 -0
  55. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/entry_points.txt +0 -0
  56. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/licenses/LICENSE +0 -0
  57. {janito-2.2.0.dist-info → janito-2.3.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: janito
3
- Version: 2.2.0
3
+ Version: 2.3.1
4
4
  Summary: A new Python package called janito.
5
5
  Author-email: João Pinto <lamego.pinto@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/janito-dev/janito
@@ -17,6 +17,7 @@ Requires-Dist: prompt_toolkit>=3.0.51
17
17
  Requires-Dist: lxml>=5.4.0
18
18
  Requires-Dist: requests>=2.32.4
19
19
  Requires-Dist: bs4>=0.0.2
20
+ Requires-Dist: openai
20
21
  Provides-Extra: dev
21
22
  Requires-Dist: pytest; extra == "dev"
22
23
  Requires-Dist: pre-commit; extra == "dev"
@@ -24,6 +25,7 @@ Requires-Dist: ruff==0.11.9; extra == "dev"
24
25
  Requires-Dist: detect-secrets==1.4.0; extra == "dev"
25
26
  Requires-Dist: codespell==2.4.1; extra == "dev"
26
27
  Requires-Dist: black; extra == "dev"
28
+ Requires-Dist: openai; extra == "dev"
27
29
  Dynamic: license-file
28
30
 
29
31
  # Janito
@@ -33,7 +35,7 @@ Janito is a command-line interface (CLI) tool for managing and interacting with
33
35
  ## Features
34
36
 
35
37
  - 🔑 Manage API keys and provider configurations
36
- - 🤖 Interact with multiple LLM providers (OpenAI, Google, Mistral, , and more)
38
+ - 🤖 Interact with multiple LLM providers (OpenAI, Google Gemini, Mistral, DeepSeek, and more)
37
39
  - 🛠️ List and use a variety of registered tools
38
40
  - 📝 Submit prompts and receive responses directly from the CLI
39
41
  - 📋 List available models for each provider
@@ -52,16 +54,60 @@ Janito is a command-line interface (CLI) tool for managing and interacting with
52
54
 
53
55
  ## Installation
54
56
 
55
- Janito is a Python package. Since this is a development version, install it directly from GitHub:
57
+ Janito is a Python package. Since this is a development version, you can install it directly from GitHub:
56
58
 
57
59
  ```bash
58
60
  pip install git+https://github.com/janito-dev/janito.git
59
61
  ```
60
62
 
63
+ ### First launch and quick setup
64
+
65
+ Janito integrates with external LLM providers (list below), and most of them require a subscription to get an API_KEY.
66
+
67
+ > [!NOTE]
68
+ > Today, on June the 26th 2025, Google has a free tier subscription for its Gemini-2.5-flash model. Despite the limitation of the model and of the rate limit of the free tier, it can be used for testing janito. The API_KEY for Gemini is available [here](https://aistudio.google.com/app/apikey).
69
+
70
+ > [!NOTE]
71
+ > [Here](https://github.com/cheahjs/free-llm-api-resources/blob/main/README.md) a list of various services that provide free access or credits towards API-based LLM usage. Note that not all of them are supported by Janito, yet.
72
+
73
+ For a quick usage you can:
74
+
75
+ 1. once you get the API_KEY from your favourite LLM provider, setup the API_KEY in Janito
76
+
77
+ ```bash
78
+ janito --set-api-key API_KEY -p PROVIDER
79
+ ```
80
+
81
+ 2. then run janito from command line with the specific LLM provider of your choice
82
+
83
+ ```bash
84
+ janito -p PROVIDER "Hello, who are you? How can you help me in my tasks?"
85
+ ```
86
+
87
+ 3. or you can run janito in interactive mode without the trailing argument
88
+
89
+ ```bash
90
+ janito -p PROVIDER
91
+ ```
92
+
93
+ 4. if you want to setup a specific provider for any further interactions you can use:
94
+
95
+ ```bash
96
+ janito -set provider=PROVIDER
97
+ ```
98
+
99
+ > [!WARNING]
100
+ > Currently the supported providers are: `openai`, `google`, `azure_openai`. You can get more details with `janito --list-providers`.
101
+
102
+ 5. for more advanced setup, continue reading.
103
+
104
+
61
105
  ## Usage
62
106
 
63
107
  After installation, use the `janito` command in your terminal.
64
108
 
109
+ Janito has configuration options, like `--set api-key API_KEY` and `--set provider=PROVIDER`, that create durable configurations and single shoot options, like `-p PROVIDER` and `-m MODEL`, that are active for the single run of the command or session.
110
+
65
111
  ### Basic Commands
66
112
 
67
113
  - **Set API Key for a Provider (requires -p PROVIDER)**
@@ -73,7 +119,7 @@ After installation, use the `janito` command in your terminal.
73
119
  > janito --set-api-key sk-xxxxxxx -p openai
74
120
  > ```
75
121
 
76
- - **Set the Provider**
122
+ - **Set the Provider (durable)**
77
123
  ```bash
78
124
  janito --set provider=provider_name
79
125
  ```
@@ -112,6 +158,7 @@ After installation, use the `janito` command in your terminal.
112
158
  ```bash
113
159
  janito -w
114
160
  ```
161
+
115
162
  This starts the lightweight web file viewer (termweb) in the background, allowing you to inspect files referenced in responses directly in your browser. Combine with interactive mode or prompts as needed.
116
163
 
117
164
  > **Tip:** Use with the interactive shell for the best experience with clickable file links.
@@ -134,6 +181,7 @@ After installation, use the `janito` command in your terminal.
134
181
  - **Select Model and Provider Temporarily**
135
182
  ```bash
136
183
  janito -p openai -m gpt-3.5-turbo "Your prompt here"
184
+ janito -p google -m gemini-2.5-flash "Your prompt here"
137
185
  ```
138
186
 
139
187
  - **Set Provider-Specific Config (for the selected provider)**
@@ -156,14 +204,12 @@ After installation, use the `janito` command in your terminal.
156
204
  | Option | Description |
157
205
  |------------------------|-----------------------------------------------------------------------------|
158
206
  | `-w`, `--web` | Enable the builtin lightweight web file viewer for clickable file links (termweb). |
159
-
160
- |------------------------|-----------------------------------------------------------------------------|
161
207
  | `--version` | Show program version |
162
208
  | `--list-tools` | List all registered tools |
163
209
  | `--list-providers` | List all supported LLM providers |
164
210
  | `-l`, `--list-models` | List models for current/selected provider |
165
211
  | `--set-api-key` | Set API key for a provider. **Requires** `-p PROVIDER` to specify the provider. |
166
- | `--set provider=name` | Set the current LLM provider (e.g., `janito --set provider=openai`) |
212
+ | `--set provider=name` | Set the current LLM provider (e.g., `janito --set provider=openai`) |
167
213
  | `--set PROVIDER.model=MODEL` or `--set model=MODEL` | Set the default model for the current/selected provider, or globally. (e.g., `janito --set openai.model=gpt-3.5-turbo`) |
168
214
  | `-s`, `--system` | Set a system prompt (e.g., `janito -s path/to/system_prompt.txt "Your prompt here"`) |
169
215
  | `-r`, `--role` | Set the role for the agent (overrides config) (e.g., `janito -r "assistant" "Your prompt here"`) |
@@ -172,7 +218,7 @@ After installation, use the `janito` command in your terminal.
172
218
  | `-v`, `--verbose` | Print extra information before answering |
173
219
  | `-R`, `--raw` | Print raw JSON response from API |
174
220
  | `-e`, `--event-log` | Log events to console as they occur |
175
- | `["user_prompt"]...` | Prompt to submit (if no other command is used) (e.g., `janito "What is the capital of France?"`) |
221
+ | `"user_prompt"` | Prompt to submit for the non interactive mode (e.g. `janito "What is the capital of France?"`) |
176
222
 
177
223
  ### 🧩 Extended Chat Mode Commands
178
224
  Once inside the interactive chat mode, you can use these slash commands:
@@ -191,7 +237,7 @@ Once inside the interactive chat mode, you can use these slash commands:
191
237
  #### 💬 Conversation Management
192
238
  | Command | Description |
193
239
  |---------------------|----------------------------------------------|
194
- | `/restart` or `/start` | Start a new conversation (reset context) |
240
+ | `/restart` | Start a new conversation (reset context) |
195
241
  | `/prompt` | Show the current system prompt |
196
242
  | `/role <description>` | Change the system role |
197
243
  | `/lang [code]` | Change interface language (e.g., `/lang en`) |
@@ -218,8 +264,12 @@ Janito is built to be extensible. You can add new LLM providers or tools by impl
218
264
  ## Supported Providers
219
265
 
220
266
  - OpenAI
267
+ - OpenAI over Azure
268
+ - Google Gemini
221
269
  - DeepSeek
222
270
 
271
+ See [docs/supported-providers-models.md](docs/supported-providers-models.md) for more details.
272
+
223
273
  ## Contributing
224
274
 
225
275
  Contributions are welcome! Please see the `CONTRIBUTING.md` (if available) or open an issue to get started.
@@ -232,20 +282,109 @@ For more information, see the documentation in the `docs/` directory or run `jan
232
282
 
233
283
  ---
234
284
 
285
+ # Support
286
+
287
+
235
288
  ## 📖 Detailed Documentation
236
289
 
237
290
  Full and up-to-date documentation is available at: https://janito-dev.github.io/janito/
238
291
 
239
292
  ---
240
293
 
294
+
241
295
  ## FAQ: Setting API Keys
242
296
 
297
+ - [Multiple API_KEY setup](#faq-multiple-api-key)
298
+ - [Use a specific model](#faq-use-specific-model)
299
+ - [Fetch the availale LLM providers](#faq-fetch-providers)
300
+ - [Fetch the availale models](#faq-fetch-models)
301
+
302
+
303
+ <a id="faq-multiple-api-key"></a>
304
+ ### Multiple API_KEY setup
305
+
243
306
  To set an API key for a provider, you **must** specify both the API key and the provider name:
244
307
 
245
308
  ```bash
246
309
  janito --set-api-key YOUR_API_KEY -p PROVIDER_NAME
247
310
  ```
248
311
 
249
- Replace `YOUR_API_KEY` with your actual key and `PROVIDER_NAME` with the provider (e.g., `openai`, `google`, etc.).
312
+ You can have an API_KEY for each LLM provider
313
+
314
+ ```bash
315
+ janito --set-api-key API_KEY_1 -p PROVIDER_1
316
+ janito --set-api-key API_KEY_2 -p PROVIDER_2
317
+ ```
318
+
319
+ Then you can easily use one provider or the other without changing the API_KEY
320
+
321
+ ```bash
322
+ janito -p PROVIDER_1 "What provider do you use?"
323
+ janito -p PROVIDER_2 "What provider do you use?"
324
+ ```
250
325
 
251
326
  If you omit the `-p PROVIDER_NAME` argument, Janito will show an error and not set the key.
327
+
328
+ <a id="faq-use-specific-model"></a>
329
+ ### Use a specific model
330
+
331
+ To use a specific model, you can use the `-m` option in the follwing way:
332
+
333
+ ```bash
334
+ janito -m gpt-4.1-nano -p openai "What model do you use?"
335
+ ```
336
+
337
+ Or you can use the durable `--set` option:
338
+
339
+ ```bash
340
+ janito --set provider=openai
341
+ janito --set model=gpt-4.1-nano
342
+ janito "What model do you use?"
343
+ ```
344
+
345
+ <a id="faq-fetch-providers"></a>
346
+ ### Fetch the availale LLM providers
347
+
348
+ You can list all the LLM providers available using:
349
+
350
+ ```bash
351
+ janito --list-providers
352
+ ```
353
+
354
+ <a id="faq-fetch-models"></a>
355
+ ### Fetch the availale models
356
+
357
+ Each LLM provider has its own models, the best way to check what are the available models is usign the following commands:
358
+
359
+ ```bash
360
+ janito -p openai --list-models
361
+ janito -p google --list-models
362
+ janito -p azure_openai --list-models
363
+ janito -p deepseek --list-models
364
+ ```
365
+
366
+
367
+ ## Ask Me Anything
368
+
369
+ <div align="center">
370
+ <a href="https://github.com/janito-dev/janito" title="Ask Me Anything">
371
+ <img width="250" src="docs/imgs/ama.png" alt="Ask Me Anything">
372
+ </a>
373
+ </div
374
+
375
+ When the FAQ are not enough, you can contact the contributors of the project by direct questions
376
+
377
+ <p align="center">
378
+ <kbd><a href="../../issues/new?labels=question">Ask a question</a></kbd> <kbd><a href="../../issues?q=is%3Aissue+is%3Aclosed+label%3Aquestion">Read questions</a></kbd>
379
+ </p>
380
+
381
+ #### Guidelines
382
+
383
+ - :mag: Ensure your question hasn't already been answered.
384
+ - :memo: Use a succinct title and description.
385
+ - :bug: Bugs & feature requests should be opened on the relevant issue tracker.
386
+ - :signal_strength: Support questions are better asked on Stack Overflow.
387
+ - :blush: Be nice, civil and polite.
388
+ - :heart_eyes: If you include at least one emoji in your question, the feedback will probably come faster.
389
+ - [Read more AMAs](https://github.com/sindresorhus/amas)
390
+ - [What's an AMA?](https://en.wikipedia.org/wiki/R/IAmA)
@@ -1,10 +1,10 @@
1
- janito/__init__.py,sha256=qQhVl9yA_ONcd5dtk2RR9dJK3vbjvQXZSOu783eI6AY,232
1
+ janito/__init__.py,sha256=ubJgDRHvrVDmvJf349Sf9OqjjpSm4BUYJGgvtwD8GzE,232
2
2
  janito/__main__.py,sha256=lPQ8kAyYfyeS1KopmJ8EVY5g1YswlIqCS615mM_B_rM,70
3
3
  janito/config.py,sha256=HJh0CmZEx7AbMQOmFkiYHFNzc-fO7fqpZ9rh6RenxK8,201
4
- janito/config_manager.py,sha256=bbviXlbrSyQSVsYjcNo--ZLr_jFuAVL6ntuuWrvHbjs,4297
4
+ janito/config_manager.py,sha256=CDu3laSi9OTUE1ZnghwjI0Ay0Po1XHuowj6ST4Dgj9c,4239
5
5
  janito/conversation_history.py,sha256=GqqEJElTVONzOMRe-9g25WCMcDi0PF7DOnqGWLTrY_8,897
6
6
  janito/dir_walk_utils.py,sha256=ON9EyVH7Aaik8WtCH5z8DQis9ycdoNVkjNvU16HH498,1193
7
- janito/driver_events.py,sha256=bDsrPd69kfcN0pQHA3w3RxEystFQhylUqLBEQLvB8VI,2759
7
+ janito/driver_events.py,sha256=51ab7KW_W6fVZVeO0ez-HJFY4NbTI327ZlEmEsEkxQc,3405
8
8
  janito/exceptions.py,sha256=l4AepRdWwAuLp5fUygrBBgO9rpwgfV6JvY1afOdq2pw,913
9
9
  janito/formatting.py,sha256=SMvOmL6bst3KGcI7OLa5D4DE127fQYuHZS3oY8OPsn8,2031
10
10
  janito/formatting_token.py,sha256=J810eUoXhtM73fIAkgAcl_oN2WhdUs6A06lDX75mnmg,1965
@@ -12,37 +12,38 @@ janito/gitignore_utils.py,sha256=P3iF9fMWAomqULq2xsoqHtI9uNIFSPcagljrxZshmLw,411
12
12
  janito/perf_singleton.py,sha256=g1h0Sdf4ydzegeEpJlMhQt4H0GQZ2hryXrdYOTL-b30,113
13
13
  janito/performance_collector.py,sha256=RYu4av16Trj3RljJZ8-2Gbn1KlGdJUosrcVFYtwviNI,6285
14
14
  janito/platform_discovery.py,sha256=JN3kC7hkxdvuj-AyrJTlbbDJjtNHke3fdlZDqGi_uz0,4621
15
- janito/provider_config.py,sha256=dzYvxWg3Smjt9Jbkw0CNdXmBMwSTgoFTOAajdPL2w5w,3048
16
- janito/provider_registry.py,sha256=wq_HFN0UGMC88IXIH_jbsM7DPsryCIYKlrtbxcOTnjI,6558
15
+ janito/provider_config.py,sha256=acn2FEgWsEIyi2AxZiuCLoP2rXDd-nXcP5VB4CZHaeE,3189
16
+ janito/provider_registry.py,sha256=qcb8ZqSNWCj2qxuDxQaIi9Wt7nMAOBEnNmG4ArL-Vow,7411
17
17
  janito/report_events.py,sha256=q4OR_jTZNfcqaQF_fzTjgqo6_VlUIxSGWfhpT4nJWcw,938
18
18
  janito/utils.py,sha256=eXSsMgM69YyzahgCNrJQLcEbB8ssLI1MQqaa20ONxbE,376
19
- janito/version.py,sha256=oziPMzlDXUmNwuhEbuBxrideguRRqIU6Vp0g75Q5nKI,108
20
- janito/agent/setup_agent.py,sha256=4TdZeutRKsjjWx5qIqEId4VY1rUUXED8XiWKdY1n4ac,4940
19
+ janito/version.py,sha256=PNc4yDkIMaS8mrSCo_2SURyBybVL1tsjgsYv99JEkVU,108
20
+ janito/agent/setup_agent.py,sha256=vPpfkGgO5k7gIDOT_LNnbM1tewM7rhx9VkaAdD57t7Y,5220
21
21
  janito/agent/templates/profiles/system_prompt_template_base_pt.txt.j2,sha256=FX8piXbR9XNOEKkOSMt4ieZ2wn5fzQlffeQFf8d7gIc,723
22
- janito/agent/templates/profiles/system_prompt_template_main.txt.j2,sha256=1MRFx_NRXAoBWFq_2c-CXGUCuWwmlGGcnbdpWv9x0pQ,2497
22
+ janito/agent/templates/profiles/system_prompt_template_main.txt.j2,sha256=npmG2_WU2Rcp1z2n33vX5ShK0y6yKDQqF2zJytgmGpE,2533
23
23
  janito/cli/__init__.py,sha256=xaPDOrWphBbCR63Xpcx_yfpXSJIlCaaICc4j2qpWqrM,194
24
- janito/cli/config.py,sha256=wMxlJhHl8EyqrVZ9xi8Hb302fvbz0nLf5mcORRxTFlw,1044
24
+ janito/cli/config.py,sha256=Drs0ubwSjrGMjHwkjLUrRA2ezqg07iE1Z0KuDj-cXSw,1148
25
25
  janito/cli/console.py,sha256=gJolqzWL7jEPLxeuH-CwBDRFpXt976KdZOEAB2tdBDs,64
26
26
  janito/cli/main.py,sha256=s5odou0txf8pzTf1ADk2yV7T5m8B6cejJ81e7iu776U,312
27
- janito/cli/main_cli.py,sha256=oekJEa4TqhebIrSjT8pAAiGeQPY1qLmlrNWHE4J8D0A,10811
28
- janito/cli/prompt_core.py,sha256=hss97xsNhx3YSrvgU0p9RanNRgRGZeomHEzOOXdrmew,10423
27
+ janito/cli/main_cli.py,sha256=e1AcKYf84vmgVTrRkQkVkvXNNQ7hsr0wC2c_pCIHaTk,11151
28
+ janito/cli/prompt_core.py,sha256=f1nk_jjrZg9du5mVtWCQGSskJikMevvPnWID5KGlNpk,10671
29
29
  janito/cli/prompt_handler.py,sha256=SnPTlL64noeAMGlI08VBDD5IDD8jlVMIYA4-fS8zVLg,215
30
- janito/cli/rich_terminal_reporter.py,sha256=cMi_e6uBMMk9DqGHeMEbWdqiuIoPn-5f1abB3WLWIts,4265
30
+ janito/cli/rich_terminal_reporter.py,sha256=LCUGojAGlvs2SOHs7_qFz8AbAGJW5cyLQhte4OXHIR4,4981
31
31
  janito/cli/termweb_starter.py,sha256=2Gr3yqSVydMWhoHUgNCtd7yviRi8uaatDtcGTpJL1Qc,5033
32
32
  janito/cli/utils.py,sha256=plCQiDKIf3V8mFhhX5H9-MF2W86i-xRdWf8Xi117Z0w,677
33
- janito/cli/verbose_output.py,sha256=NvQCCEEEiTNiat_eJbcK1SFHl7Fc1P01KuZNmvljIMo,7398
34
- janito/cli/chat_mode/bindings.py,sha256=hj6KXw81-Dt80lu4MR-l5h6Olui29E20fEmiktw_c-Y,906
33
+ janito/cli/verbose_output.py,sha256=GVW4ZTqeVlv8BH7lfvSivX4nojXPDiZOYs1UM3wCkrU,7628
34
+ janito/cli/chat_mode/bindings.py,sha256=l-Uk6ee3SbtYFc8FzR5FQIu2iCmtzebINYo8w9hnmr4,1078
35
35
  janito/cli/chat_mode/chat_entry.py,sha256=Rdaq7-3OHtro2ncUOPHXZOLpOoKPRJnoz7Jqr8_fuDQ,604
36
36
  janito/cli/chat_mode/prompt_style.py,sha256=-viZYJgjGID6kR9toz6HtzIkIxGOCG28xNqiiD2MwX0,640
37
- janito/cli/chat_mode/session.py,sha256=C8016U66s_cQKw6ueNlhOeMAkLVcGOO6GkwCvzxyvVg,11528
38
- janito/cli/chat_mode/toolbar.py,sha256=6XMbe7DGbEE6pF_9PiZbg7deAK54TXbv2vlBXNzS43Y,3642
37
+ janito/cli/chat_mode/session.py,sha256=23hPQl4uk7P95prjaqY6ZdE5Dm5CGfI54qc61R6v7x4,12448
38
+ janito/cli/chat_mode/toolbar.py,sha256=WUkyodsVgroHptrvIdX7DfAQMZ8j_Z5oX_4SE4iySQY,3689
39
39
  janito/cli/chat_mode/shell/autocomplete.py,sha256=lE68MaVaodbA2VfUM0_YLqQVLBJAE_BJsd5cMtwuD-g,793
40
40
  janito/cli/chat_mode/shell/input_history.py,sha256=mdcu8XNPp1ewVQMTEmqoAdgj1Lsig5cKkUfvFVxShYo,2537
41
- janito/cli/chat_mode/shell/commands/__init__.py,sha256=C4XsKVP3PNvu1Ln9r_brtZfZZPzffFmR2n3ktHbLV3I,1955
41
+ janito/cli/chat_mode/shell/commands/__init__.py,sha256=R20AE4KNbt650J0kKu36ubh9_tgcy-qdC6jbhGDI2EQ,2089
42
42
  janito/cli/chat_mode/shell/commands/base.py,sha256=I6-SVOcRd7q4PpoutLdrbhbqeUpJic2oyPhOSMgMihA,288
43
43
  janito/cli/chat_mode/shell/commands/clear.py,sha256=wYEHGYcAohUoCJlbEhiXKfDbJvuzAVK4e9uirskIllw,422
44
44
  janito/cli/chat_mode/shell/commands/conversation_restart.py,sha256=2YH_BkU0200liuZAKO6YZULrzB0i15wWWahuA_QODgw,2905
45
45
  janito/cli/chat_mode/shell/commands/edit.py,sha256=OU3BmJEgslTmazCYo23XCIT99hhzscinjoqVMg_VH3E,892
46
+ janito/cli/chat_mode/shell/commands/exec.py,sha256=oFpRnRUTHmrhicFrSYqDmBxp-rSb_J7VUWgeUeftDwQ,1462
46
47
  janito/cli/chat_mode/shell/commands/help.py,sha256=Oa1oJ-Ea9uR6b57gwv7dVKKNRTFHyupahhOVh-P4rk8,633
47
48
  janito/cli/chat_mode/shell/commands/history_view.py,sha256=9dyxYpDHjT77LEIikjBQA03Ep3P2AmKXUwUnVsG0OQc,3584
48
49
  janito/cli/chat_mode/shell/commands/lang.py,sha256=uIelDs3gPYDZ9X9gw7iDMmiwefT7TiBo32420pq2tW8,837
@@ -53,35 +54,33 @@ janito/cli/chat_mode/shell/commands/role.py,sha256=7A2S2wzE6lcv1rg4iLGH8vVy-TnzR
53
54
  janito/cli/chat_mode/shell/commands/session.py,sha256=9wsw5U24-KJgTT70KAwnGuS8MVPyvpxCJfAt_Io76O0,1574
54
55
  janito/cli/chat_mode/shell/commands/session_control.py,sha256=tmMGJ8IvWoBwSIJu7T6GPnFYFrmXWIG2Gr9tTni4y3U,1307
55
56
  janito/cli/chat_mode/shell/commands/termweb_log.py,sha256=W2586JMBwMKNlsgdgACQYIy_1oTOxjjckzRQwJBreXM,3853
56
- janito/cli/chat_mode/shell/commands/tools.py,sha256=lnIm5RhvI7wzPjm_GcgXIzmPg6o-6ovT-wT6ISGFN80,1546
57
+ janito/cli/chat_mode/shell/commands/tools.py,sha256=je0ePuQTeSdPNOlyZIH1tBFedobJJCeCQHIIwTQufmU,2156
57
58
  janito/cli/chat_mode/shell/commands/utility.py,sha256=K982P-UwgPLzpEvSuSBGwiQ3zC34S_6T2ork_djweQw,847
58
59
  janito/cli/chat_mode/shell/commands/verbose.py,sha256=HDTe0NhdcjBuhh-eJSW8iLPDeeBO95K5iSDAMAljxa4,953
59
60
  janito/cli/chat_mode/shell/session/__init__.py,sha256=uTYE_QpZFEn7v9QE5o1LdulpCWa9vmk0OsefbBGWg_c,37
60
61
  janito/cli/chat_mode/shell/session/history.py,sha256=tYav6GgjAZkvWhlI_rfG6OArNqW6Wn2DTv39Hb20QYc,1262
61
- janito/cli/chat_mode/shell/session/manager.py,sha256=uJD9RKsfMCMm3HRuiuetQ9Y-ki21lFSt68pJikSYA-o,3310
62
+ janito/cli/chat_mode/shell/session/manager.py,sha256=SL9BCdlCPdoo-5BPAIC1eaJuXv7hH4d5VGqMF6T7MEI,3333
62
63
  janito/cli/cli_commands/list_models.py,sha256=VN7_DG6aTxaHPrc6_H-OftRXRT1urhf5ze_qJ_SO35U,1116
63
64
  janito/cli/cli_commands/list_providers.py,sha256=AMAVdoS7KN7WA3gaKhZZdfio_zvknu21OLDc6CTFZ34,173
64
65
  janito/cli/cli_commands/list_tools.py,sha256=NEmaCqEpfEpWU9Z_RNyJ3WAjFDf7xlGSLZnZLnBrZeM,2186
65
66
  janito/cli/cli_commands/model_selection.py,sha256=ANWtwC5glZkGMdaNtARDbEG3QmuBUcDLVxzzC5jeBNo,1643
66
- janito/cli/cli_commands/model_utils.py,sha256=d1rENGb34_YgIRTvVaWm3BixGjKsXnoOXoXipT9pins,2377
67
+ janito/cli/cli_commands/model_utils.py,sha256=FkE7oRkEJmNNeAS6a6S3O7etd6N7IRWtsc6gTakg-2o,2769
67
68
  janito/cli/cli_commands/set_api_key.py,sha256=iPtWPhS5VeyIlwVX43TGg7OYUwXCcGzugvwoa3KB8A8,605
68
69
  janito/cli/cli_commands/show_config.py,sha256=6j4P2mK1Q7KZGPF9EXV3ascuWRQtpbgAQgRAnNszBJI,2024
69
70
  janito/cli/cli_commands/show_system_prompt.py,sha256=OtcIsmI9au7JE7hxEuJPw118Vaq53UyqqyP67u2sV5Y,2446
70
71
  janito/cli/core/__init__.py,sha256=YH95fhgY9yBX8RgqX9dSrEkl4exjV0T4rbmJ6xUpG-Y,196
71
72
  janito/cli/core/event_logger.py,sha256=1X6lR0Ax7AgF8HlPWFoY5Ystuu7Bh4ooTo78vXzeGB0,2008
72
- janito/cli/core/getters.py,sha256=IfweIK5uZZz9y-p8lyHHmXaqjWk6BkzY6ImJxxh7ATc,1426
73
- janito/cli/core/runner.py,sha256=baDS5_fwnabYr87h37pE3g-t4H4_TcsTowkQ_eQs310,5979
74
- janito/cli/core/setters.py,sha256=c_JAlaEPpwR514Y7lQHgnZC9X2PpsjWia2fRzKmSFV8,6633
73
+ janito/cli/core/getters.py,sha256=Y2wYVBe9yNaVRq5Wud8rEV1sbMm9ml-HUDX4tlUv3Vw,1434
74
+ janito/cli/core/runner.py,sha256=z-YSAuS1uOI9JkDIU3n4ItCIsSTSXPqiPDm2HnLXGUA,7105
75
+ janito/cli/core/setters.py,sha256=U-Tp-NlHTLHteLchUdTXvA_v2gaXb7M98oolMvXEuvw,6883
75
76
  janito/cli/core/unsetters.py,sha256=FEw9gCt0vRvoCt0kRSNfVB2tzi_TqppJIx2nHPP59-k,2012
76
77
  janito/cli/single_shot_mode/__init__.py,sha256=Ct99pKe9tINzVW6oedZJfzfZQKWpXz-weSSCn0hrwHY,115
77
- janito/cli/single_shot_mode/handler.py,sha256=2VTGiYOHIZE5z_S0pic9-rBcyL_nb5NgldNZKKZtibM,5600
78
- janito/drivers/driver_registry.py,sha256=zEvCJwaKhmGFGTIpSoZOncNwmJhrRTbaDz7yVF-1ZTk,1133
78
+ janito/cli/single_shot_mode/handler.py,sha256=pqs4r0EZc28-9d1qpo8mj_-x3QVDAxMCkTkd0GCdRa0,6250
79
+ janito/drivers/driver_registry.py,sha256=c_nezPfjPHaAZjCZhU80JN_YRCKYBJhomQNYZCu-Ug4,1007
79
80
  janito/drivers/anthropic/driver.py,sha256=4yLaf2T0g2zr-MSwXOx32s7ETut9FOl0uXyJGYiJzZU,3937
80
- janito/drivers/azure_openai/driver.py,sha256=NiAIeaDVTcyUi01qYdt0hKDbqasuesNrk_pHTwMgvv0,2006
81
- janito/drivers/google_genai/driver.py,sha256=qg3bApr954LexMlnsL3MLaHAS8X4aacmRKsyEPj6KKo,1680
82
- janito/drivers/google_genai/schema_generator.py,sha256=p5hWxzcjeTlLAQZAt6kTXjxnHnBYyDAkKi4KkZctAJQ,2565
81
+ janito/drivers/azure_openai/driver.py,sha256=zQc9xH-RD409okDCfTRwb1QXXb9WzR2bsBfRyrZ5HYc,3936
83
82
  janito/drivers/mistralai/driver.py,sha256=r7iMMAG5V7OmzrtQhVCuK3ueAEzgbgS1qcPDKHTNKoo,1208
84
- janito/drivers/openai/driver.py,sha256=FAxZMscioXRKKZWDWlZ6aEbTbwAyVGlam6sLl1y8G0I,13560
83
+ janito/drivers/openai/driver.py,sha256=50Ic_w6HR7xqp2rZ9RYM4Ylbhn4MKAuhyRNTHYozhVQ,21812
85
84
  janito/event_bus/__init__.py,sha256=VG6GOhKMBh0O_92D-zW8a3YitJPKDajGgPiFezTXlNE,77
86
85
  janito/event_bus/bus.py,sha256=LokZbAdwcWhWOyKSp7H3Ism57x4EZhxlRPjl3NE4UKU,2847
87
86
  janito/event_bus/event.py,sha256=TMWZ4ccv1vGIsBQpeKDsDOBGgw9Pk_ltYWd6dMUJp6Q,398
@@ -92,32 +91,32 @@ janito/i18n/messages.py,sha256=fBuwOTFoygyHPkYphm6Y0r1iE8497Z4iryVAmPhMEkg,1851
92
91
  janito/i18n/pt.py,sha256=MPK8URu3BY2RPwhw2nU8j6ssMl3AyyFmVkP-1L2YkcM,4288
93
92
  janito/llm/__init__.py,sha256=dpyVH51qVRCw-PDyAFLAxq0zd4jl5MDcuV6Cri0D-dQ,134
94
93
  janito/llm/agent.py,sha256=qTUHphpzYiPC9m9DHC6rKH4-W9ZCBS6Aqnzer4V5tb4,18407
95
- janito/llm/auth.py,sha256=OxqaKS-lOf9-nX0SPxY3GxYd2pFBnpxbkYOM1DyL9O4,2259
96
- janito/llm/driver.py,sha256=u1dO4T6juuUdtBmUpx-Y3LTGCcMypOaFT7MeVHGn-Rw,9460
97
- janito/llm/driver_config.py,sha256=d_TG8VvczXmObItdMFLRoVo3pIu9ig9YWodJVF4Qgoo,1362
94
+ janito/llm/auth.py,sha256=i9xANOVWZXLl8kPaJZtVarvXYLcAGEqgKyrbkF8fywM,2223
95
+ janito/llm/driver.py,sha256=EURz04w3CWwxJ2VOZ5bUcNCneQqRS6-mrqKetDjZ7cs,9816
96
+ janito/llm/driver_config.py,sha256=OW0ae49EfgKDqaThuDjZBiaN78voNzwiZ6szERMqJos,1406
98
97
  janito/llm/driver_config_builder.py,sha256=BvWGx7vaBR5NyvPY1XNAP3lAgo1uf-T25CSsIo2kkCU,1401
99
98
  janito/llm/driver_input.py,sha256=Zq7IO4KdQPUraeIo6XoOaRy1IdQAyYY15RQw4JU30uA,389
100
99
  janito/llm/message_parts.py,sha256=QY_0kDjaxdoErDgKPRPv1dNkkYJuXIBmHWNLiOEKAH4,1365
101
100
  janito/llm/model.py,sha256=42hjcffZDTuzjAJoVhDcDqwIXm6rUmmi5UwTOYopf5w,1131
102
101
  janito/llm/provider.py,sha256=lfIJnh06F0kf8--Pg_W7ALhkbIzn7N4iItQ93pntyuM,7978
103
- janito/providers/__init__.py,sha256=j11MccCveqDTiZTicJH00eZ3qVDEL1KDbihGZhEvGYg,326
104
- janito/providers/provider_static_info.py,sha256=f0g2UbyLdHFBPb45x19t6Lx_FoIXp0mJLboH4Jqn1L0,611
102
+ janito/providers/__init__.py,sha256=Q9zTiZlDuAsdI6y4tAcqLlZ6LCKyRaOsoQ2iBAGq0O4,367
103
+ janito/providers/provider_static_info.py,sha256=Lwbcb-AOEmo9v5Ma4SqM51uSXGwWYFewMJSDl1rOd8M,568
105
104
  janito/providers/registry.py,sha256=u8nWy4JtVM4mibLTnGYNs6QrN64A4dBB-hTCYfLSnWo,704
106
105
  janito/providers/anthropic/model_info.py,sha256=saofXNs73WhlAhm58AcIkSem7C8FMUgHP19BvkoLV5Y,641
107
- janito/providers/anthropic/provider.py,sha256=nTMTroXCffU9JIEpMtMlY7a4FZS1J90gr9cAVRwrCJE,2371
108
- janito/providers/azure_openai/model_info.py,sha256=v4zHgPDBCZkQUE40i-BseDnYzvjPd8c8NaspIor3l10,396
109
- janito/providers/azure_openai/provider.py,sha256=a4EBTr6K417-MrFuw4JhAqjeJziXYB_q-XmfjKLsJYk,3682
106
+ janito/providers/anthropic/provider.py,sha256=JW7PSGf7RNQWDMpf55DnnfP1oWU3d98koaz4AHjWtrQ,2509
107
+ janito/providers/azure_openai/model_info.py,sha256=ZgSZQy7gJIbPBxbHC5HLWqZJV7Ouk1UbMnd4PTecGzI,673
108
+ janito/providers/azure_openai/provider.py,sha256=7RtYYjKa4HYi11XSiB4QQI2czzvpQ2btOWn7i-sHS8g,5154
110
109
  janito/providers/deepseek/__init__.py,sha256=4sISEpq4bJO29vxFK9cfnO-SRUmKoD7oSdeCvz0hVno,36
111
110
  janito/providers/deepseek/model_info.py,sha256=tAlFRtWiyNF_MKZ1gy5_-VNlvqoIwAinv6bAv9dNFsc,465
112
- janito/providers/deepseek/provider.py,sha256=h3xD3uAoE9Kr-IumcQsEK3oNZbkXH-bDfzQK1Uz3nM4,3659
111
+ janito/providers/deepseek/provider.py,sha256=5ehIyOOVn7x4kEeU9m8adxSAda9kHHHv3vM44R1MVJ8,3881
113
112
  janito/providers/google/__init__.py,sha256=hE3OGJvLEhvNLhIK_XmCGIdrIj8MKlyGgdOLJ4mdess,38
114
- janito/providers/google/model_info.py,sha256=tw0_o8Z3Zhcl5BtcShgE-a0Sinz2gsiiiSWWOIjm5us,1220
115
- janito/providers/google/provider.py,sha256=O60BJXhjmwfmI-FqHUAAO022H7CUbhVU_Qj-FIrPnp4,2626
113
+ janito/providers/google/model_info.py,sha256=Yt6UffgCmPDvXzegmzy2FVo7pNblwUOl7oC6bSRYOaI,1106
114
+ janito/providers/google/provider.py,sha256=Qgt8ZcgPl5fQIFplazoGZkqbUjr-JILKs9FtPBmqUkQ,3337
116
115
  janito/providers/mistralai/model_info.py,sha256=Kh0S_3O76fcPGYW-ywmsF4Hhd8011wLpORPLRu3zdlQ,1026
117
- janito/providers/mistralai/provider.py,sha256=hYb4VMJE9PUJjwM2hxKpJwU-TK7xf-Cx_f-0wIbGzc8,2537
116
+ janito/providers/mistralai/provider.py,sha256=H7_SHPFq6mAlqG7RmtrOs9kjMfJ78WB336nwyKeug3c,2763
118
117
  janito/providers/openai/__init__.py,sha256=f0m16-sIqScjL9Mp4A0CQBZx6H3PTEy0cnE08jeaB5U,38
119
118
  janito/providers/openai/model_info.py,sha256=cz08O26Ychm-aP3T8guJRqpR96Im9Cwtgl2iMgM7tJs,3384
120
- janito/providers/openai/provider.py,sha256=d2MsSuaR8GhE966FKhY8cX2jSFv5EPAVTf36-ZJwC7I,4481
119
+ janito/providers/openai/provider.py,sha256=5jYdakoWywkeIzFk-LxjRhsLONRjLQ8fMYiP6lyZpJo,4809
121
120
  janito/providers/openai/schema_generator.py,sha256=hTqeLcPTR8jeKn5DUUpo7b-EZ-V-g1WwXiX7MbHnFzE,2234
122
121
  janito/termweb/app.py,sha256=lOZqNf5TEvijryLXaa2CDx722PqBR_DH32A44V1Lfz0,3305
123
122
  janito/tools/__init__.py,sha256=Xk6i_b2VTfrSGt_iBGAe61uSZGyrztv_WzbGlxQVNrU,566
@@ -127,27 +126,27 @@ janito/tools/tool_events.py,sha256=czRtC2TYakAySBZvfHS_Q6_NY_7_krxzAzAL1ggRFWA,1
127
126
  janito/tools/tool_run_exception.py,sha256=43yWgTaGBGEtRteo6FvTrane6fEVGo9FU1uOdjMRWJE,525
128
127
  janito/tools/tool_use_tracker.py,sha256=koXi1h-si8IpRFUdMaj6h6buxeYsuEDC4geP_f2xPms,2805
129
128
  janito/tools/tool_utils.py,sha256=57nfiq0XKTxzSy7ZqgmR_ItMt0-Ri3sENQzCiLWDR_M,1363
130
- janito/tools/tools_adapter.py,sha256=5UXiL0F1oADFDaV2UQRviMYpylfZPl8AKrGVW0RkdAw,8410
129
+ janito/tools/tools_adapter.py,sha256=vhSs9fxUdkVAxKtFYyhXXR82UctTathCN9sKU1QONkY,11385
131
130
  janito/tools/tools_schema.py,sha256=rGrKrmpPNR07VXHAJ_haGBRRO-YGLOF51BlYRep9AAQ,4415
132
131
  janito/tools/adapters/__init__.py,sha256=XKixOKtUJs1R-rGwGDXSLVLg5-Kp090gvWbsseWT4LI,92
133
132
  janito/tools/adapters/local/__init__.py,sha256=WPTSOMrZpRg7ioNqCp3fYmnMaF3HnzymGzVpvH0Mp5w,1941
134
- janito/tools/adapters/local/adapter.py,sha256=6W-0HgCoKBJcefmMuXhfS114mDbg7G8Oygm8PFTGsCg,3565
133
+ janito/tools/adapters/local/adapter.py,sha256=y-vaTbBelFovELApRt2cI17g8ercqPlM8hwkgmVlU4I,4654
135
134
  janito/tools/adapters/local/ask_user.py,sha256=GiGnID--Wd7uvF4I9JyQn4m4PzdwSACfo5kH7O9rFuo,3431
136
135
  janito/tools/adapters/local/copy_file.py,sha256=wNr6mQBxYxGMGZFJmDnWXm5ogJ8iskpA6izBJH4cQvk,3507
137
136
  janito/tools/adapters/local/create_directory.py,sha256=4PpSKETzqdUPmSk5vX2ikatHcobRK7vZEgV1quMsTVs,2551
138
137
  janito/tools/adapters/local/create_file.py,sha256=a-Wrx4sN0YAxiTKow2EfFvQHLO3hyfS2kV2Zq1aG4fs,3463
139
- janito/tools/adapters/local/delete_text_in_file.py,sha256=ZPCBMDPHlxi5eUuILyAJQ1TzRPX_USvjwAfQBJ9CfNM,5417
138
+ janito/tools/adapters/local/delete_text_in_file.py,sha256=OvJqmusOSYH5CYKpjodoOl5onqQLcoYduZQIuoFoWTc,5101
140
139
  janito/tools/adapters/local/fetch_url.py,sha256=b5eRFRTG2L5rVIQAGXrPNm4j0kSUszhuG9pRVwnl_L0,3806
141
140
  janito/tools/adapters/local/find_files.py,sha256=P-besMFSh_3C86Vcqe1WD42kAmlewwePsIYghCv8vHA,5964
142
- janito/tools/adapters/local/move_file.py,sha256=_Pn34fYbRq7Ax2kSv0LeTHKRn0LnNScxaM7jA_QTjR8,5213
141
+ janito/tools/adapters/local/move_file.py,sha256=Ng6T4xEqo1WhB8AZfQ6U64nd5ntXunli3PwABHPqhuM,4541
143
142
  janito/tools/adapters/local/open_html_in_browser.py,sha256=ankH5hFjhZ7IUym2qUgmwtOSdhvnBSj9SLwirIJNCQM,1925
144
143
  janito/tools/adapters/local/open_url.py,sha256=40qPXTyq2SINHQgEnqfCEfBnGAQOJB4uZlQoe-R2sNU,1339
145
144
  janito/tools/adapters/local/python_code_run.py,sha256=MCZqd8L3xJ4rsi4QmGytNrfRvv0FCqrhivAn5lQgm9k,6650
146
145
  janito/tools/adapters/local/python_command_run.py,sha256=2bP9YnBP_-w6VQtmC7ROonsgDo2dq0_iVOFB2JEdCJs,6590
147
146
  janito/tools/adapters/local/python_file_run.py,sha256=1xaaMsHrobJ3z0T8bIS469zIKqwdNpFlnV8UorO8LTQ,6465
148
- janito/tools/adapters/local/remove_directory.py,sha256=A0qriZkcf85t3bwX52G9O6PYQFdUxWqVqbwRpjCzp1Q,2628
149
- janito/tools/adapters/local/remove_file.py,sha256=ThC1yMv0u6DHBDjxNmOf-Txp3nPZfo-Uh2K1rgENGlI,2479
150
- janito/tools/adapters/local/replace_text_in_file.py,sha256=V4v3Z_BwxdwBb_zuIUnDQBrcNoCORFdaih4DFsx1NDU,11108
147
+ janito/tools/adapters/local/remove_directory.py,sha256=8VXcMPfLAXhScpkb22VfAETNeWjTmgm8hFTGWRq7TtY,1791
148
+ janito/tools/adapters/local/remove_file.py,sha256=NaZTvuIRtGurp1rLZIjQZ6_kkGcmXc8oQkk9gDc5W3s,2051
149
+ janito/tools/adapters/local/replace_text_in_file.py,sha256=5DNOEivKcT083lspjoi0eCaTn0Qd3YfrX1yrSNTY4_E,10814
151
150
  janito/tools/adapters/local/run_bash_command.py,sha256=mfYeZMlvEIdPVQaeGeeMc7gBMQ2k0GbBGFHaFP_l3BA,7591
152
151
  janito/tools/adapters/local/run_powershell_command.py,sha256=Gaz--9vkKfST09fiMNuWhdZvD2-wd-GDqhxVudec8IM,9229
153
152
  janito/tools/adapters/local/view_file.py,sha256=MzGUjnOM-eMBANisAkNSvANn2UpA-GDqlE96KuCOkC4,7134
@@ -160,7 +159,7 @@ janito/tools/adapters/local/get_file_outline/python_outline_v2.py,sha256=OOHKDGb
160
159
  janito/tools/adapters/local/get_file_outline/search_outline.py,sha256=YtroO9K9h9_-UbHHArJbx_AU1F0ahvm19K_PPlSuljk,1164
161
160
  janito/tools/adapters/local/search_text/__init__.py,sha256=FEYpF5tTtf0fiAyRGIGSn-kV-MJDkhdFIbus16mYW8Y,34
162
161
  janito/tools/adapters/local/search_text/core.py,sha256=nDhwXe0IhFx_1zXAp9ubIn_-eaXihaXlHVb7X50JeYA,7640
163
- janito/tools/adapters/local/search_text/match_lines.py,sha256=XENsofkHGIRgFcAiS_O4J-esKgr7G5ZkpJHsYMglyEg,2133
162
+ janito/tools/adapters/local/search_text/match_lines.py,sha256=2l0r8_1l5gnmu9vJSdkxu0JwbPNHx7m84Ei2s4V0hcQ,2141
164
163
  janito/tools/adapters/local/search_text/pattern_utils.py,sha256=Cytwl7M9tNY-IsAmvoMgvlQMPswbCHTVrX8aZQ6IBJc,2374
165
164
  janito/tools/adapters/local/search_text/traverse_directory.py,sha256=TrsAlFXcG7WdtZS6pg3_6vlL3h-afps5u7kkBDhA65c,4064
166
165
  janito/tools/adapters/local/validate_file_syntax/__init__.py,sha256=P53RHmas4BbHL90cMxH9m-RpMCJI8JquoJb0rpkPVVk,29
@@ -174,9 +173,9 @@ janito/tools/adapters/local/validate_file_syntax/ps1_validator.py,sha256=cP1jsMh
174
173
  janito/tools/adapters/local/validate_file_syntax/python_validator.py,sha256=lHzjlA4g9nCF9hXkGx3izWF0b0vJH3yV7Pu3buLyBbI,140
175
174
  janito/tools/adapters/local/validate_file_syntax/xml_validator.py,sha256=3CK7BEGO7gKI3bpeTtCFe0kJ5aKDZVh3Kh67bGIhcuc,294
176
175
  janito/tools/adapters/local/validate_file_syntax/yaml_validator.py,sha256=XLmOp7Ef6pLd97ICVnF3PxNKL1Yo5tLZsasvxPY478Y,165
177
- janito-2.2.0.dist-info/licenses/LICENSE,sha256=GSAKapQH5ZIGWlpQTA7v5YrfECyaxaohUb1vJX-qepw,1090
178
- janito-2.2.0.dist-info/METADATA,sha256=vP59WNSn3LLGZKYm6Jxor4M-oTM-tqp4g5m7zv2GUNg,11141
179
- janito-2.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
- janito-2.2.0.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
181
- janito-2.2.0.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
182
- janito-2.2.0.dist-info/RECORD,,
176
+ janito-2.3.1.dist-info/licenses/LICENSE,sha256=GSAKapQH5ZIGWlpQTA7v5YrfECyaxaohUb1vJX-qepw,1090
177
+ janito-2.3.1.dist-info/METADATA,sha256=JaC4ULsZ9PdxIYK3ckyINQR0_69iOj0NosHUn4ExEvE,15531
178
+ janito-2.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
179
+ janito-2.3.1.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
180
+ janito-2.3.1.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
181
+ janito-2.3.1.dist-info/RECORD,,
@@ -1,54 +0,0 @@
1
- """
2
- Google Gemini LLM driver.
3
-
4
- This driver handles interaction with the Google Gemini API, including support for tool/function calls and event publishing.
5
- """
6
-
7
- import json
8
- import time
9
- import uuid
10
- import traceback
11
- from typing import Optional, List, Dict, Any, Union
12
- from janito.llm.driver import LLMDriver
13
- from janito.drivers.google_genai.schema_generator import generate_tool_declarations
14
- from janito.driver_events import (
15
- GenerationStarted,
16
- GenerationFinished,
17
- RequestStarted,
18
- RequestFinished,
19
- ResponseReceived,
20
- RequestStatus,
21
- )
22
- from janito.tools.adapters.local.adapter import LocalToolsAdapter
23
- from janito.llm.message_parts import TextMessagePart, FunctionCallMessagePart
24
- from janito.llm.driver_config import LLMDriverConfig
25
-
26
-
27
- def extract_usage_metadata_native(usage_obj):
28
- if usage_obj is None:
29
- return {}
30
- result = {}
31
- for attr in dir(usage_obj):
32
- if attr.startswith("_") or attr == "__class__":
33
- continue
34
- value = getattr(usage_obj, attr)
35
- if isinstance(value, (str, int, float, bool, type(None))):
36
- result[attr] = value
37
- elif isinstance(value, list):
38
- if all(isinstance(i, (str, int, float, bool, type(None))) for i in value):
39
- result[attr] = value
40
- return result
41
-
42
-
43
- class GoogleGenaiModelDriver(LLMDriver):
44
- available = False
45
- unavailable_reason = "GoogleGenaiModelDriver is not implemented yet."
46
-
47
- @classmethod
48
- def is_available(cls):
49
- return cls.available
50
-
51
- name = "google_genai"
52
-
53
- def __init__(self, tools_adapter=None):
54
- raise ImportError(self.unavailable_reason)
@@ -1,67 +0,0 @@
1
- import inspect
2
- import typing
3
- from janito.tools.tools_schema import ToolSchemaBase
4
-
5
- try:
6
- from google.genai import types as genai_types
7
- except ImportError:
8
- genai_types = None
9
-
10
-
11
- class GeminiSchemaGenerator(ToolSchemaBase):
12
- PYTHON_TYPE_TO_GENAI_TYPE = {
13
- str: "STRING",
14
- int: "INTEGER",
15
- float: "NUMBER",
16
- bool: "BOOLEAN",
17
- list: "ARRAY",
18
- dict: "OBJECT",
19
- }
20
-
21
- def type_to_genai_schema(self, annotation, description=None):
22
- if hasattr(annotation, "__origin__"):
23
- if annotation.__origin__ is list or annotation.__origin__ is typing.List:
24
- return genai_types.Schema(
25
- type="ARRAY",
26
- items=self.type_to_genai_schema(annotation.__args__[0]),
27
- description=description,
28
- )
29
- if annotation.__origin__ is dict or annotation.__origin__ is typing.Dict:
30
- return genai_types.Schema(type="OBJECT", description=description)
31
- return genai_types.Schema(
32
- type=self.PYTHON_TYPE_TO_GENAI_TYPE.get(annotation, "STRING"),
33
- description=description,
34
- )
35
-
36
- def generate_declaration(self, tool_class):
37
- func, tool_name, sig, summary, param_descs, return_desc, description = (
38
- self.validate_tool_class(tool_class)
39
- )
40
- properties = {}
41
- required = []
42
- # Removed tool_call_reason from properties and required
43
- for name, param in sig.parameters.items():
44
- if name == "self":
45
- continue
46
- annotation = param.annotation
47
- pdesc = param_descs.get(name, "")
48
- schema = self.type_to_genai_schema(annotation, description=pdesc)
49
- properties[name] = schema
50
- if param.default == inspect._empty:
51
- required.append(name)
52
- parameters_schema = genai_types.Schema(
53
- type="OBJECT", properties=properties, required=required
54
- )
55
- return genai_types.FunctionDeclaration(
56
- name=tool_name, description=description, parameters=parameters_schema
57
- )
58
-
59
-
60
- def generate_tool_declarations(tool_classes: list):
61
- if genai_types is None:
62
- raise ImportError("google-genai package is not installed.")
63
- generator = GeminiSchemaGenerator()
64
- function_declarations = [
65
- generator.generate_declaration(tool_class) for tool_class in tool_classes
66
- ]
67
- return [genai_types.Tool(function_declarations=function_declarations)]
File without changes