hcli-hai 2.1.2__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.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.1
2
+ Name: hcli_hai
3
+ Version: 2.1.2
4
+ Summary: HCLI hai is a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude or OpenAI's GPT AI models via terminal input and output streams.
5
+ Author-email: Jeff Michaud <cometaj2@comcast.net>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/cometaj2/hcli_hai
8
+ Keywords: cli,client,server,connector,hypermedia,rest,generic,development
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Description-Content-Type: text/x-rst
17
+ License-File: LICENSE.txt
18
+ Requires-Dist: tiktoken==0.8.0
19
+ Requires-Dist: anthropic==0.36.2
20
+
21
+ |pypi| |build status| |pyver|
22
+
23
+ HCLI hai
24
+ ========
25
+
26
+ HCLI hai is a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude models via terminal input and output streams.
27
+
28
+ ----
29
+
30
+ HCLI hai wraps hai (an HCLI) and is intended to be used with an HCLI Client [1] as presented via an HCLI Connector [2].
31
+
32
+ You can find out more about HCLI on hcli.io [3]
33
+
34
+ [1] https://github.com/cometaj2/huckle
35
+
36
+ [2] https://github.com/cometaj2/hcli_core
37
+
38
+ [3] http://hcli.io
39
+
40
+ Installation
41
+ ------------
42
+
43
+ HCLI hai requires a supported version of Python and pip.
44
+
45
+ You'll need an HCLI Connector to run hai. For example, you can use HCLI Core (https://github.com/cometaj2/hcli_core), a WSGI server such as Green Unicorn (https://gunicorn.org/), and an HCLI Client like Huckle (https://github.com/cometaj2/huckle).
46
+
47
+
48
+ .. code-block:: console
49
+
50
+ pip install hcli-hai
51
+ pip install hcli-core
52
+ pip install huckle
53
+ pip install gunicorn
54
+ gunicorn --workers=1 --threads=1 -b 127.0.0.1:8000 "hcli_core:connector(\"`hcli_hai path`\")"
55
+
56
+ Usage
57
+ -----
58
+
59
+ Open a different shell window.
60
+
61
+ Setup the huckle env eval in your .bash_profile (or other bash configuration) to avoid having to execute eval everytime you want to invoke HCLIs by name (e.g. hai).
62
+
63
+ Note that no CLI is actually installed by Huckle. Huckle reads the HCLI semantics exposed by the API via HCLI Connector and ends up behaving *like* the CLI it targets.
64
+
65
+
66
+ .. code-block:: console
67
+
68
+ huckle cli install http://127.0.0.1:8000
69
+ eval $(huckle env)
70
+ hai help
71
+
72
+ Versioning
73
+ ----------
74
+
75
+ This project makes use of semantic versioning (http://semver.org) and may make use of the "devx",
76
+ "prealphax", "alphax" "betax", and "rcx" extensions where x is a number (e.g. 0.3.0-prealpha1)
77
+ on github.
78
+
79
+ Supports
80
+ --------
81
+
82
+ - Chatting via input/output streams (e.g. via pipes).
83
+ - .hai folder structure in a users's home directory to help track hai configuration and contexts.
84
+ - Creating, listing, deleting and changing conversation contexts.
85
+ - Automatic title creation based on context
86
+ - Custom context naming to help organize contexts
87
+ - Behavior setting to allow for persistent chatbot behavior (e.g. the Do Anything Now (DAN) prompt).
88
+
89
+ To Do
90
+ -----
91
+
92
+ - A memory layer for the the AI HCLI (hai).
93
+ - Automatic context switching per NLP on received input stream.
94
+ - Context blending to mary different contexts.
95
+ - Automatic context compression to yield a more substantial memory footprint per context window.
96
+ - A shell mode for the AI HCLI (hai) to enable shell CLI execution per sought goal.
97
+
98
+ Bugs
99
+ ----
100
+
101
+ N/A
102
+
103
+ .. |build status| image:: https://circleci.com/gh/cometaj2/hcli_hai.svg?style=shield
104
+ :target: https://circleci.com/gh/cometaj2/hcli_hai
105
+ .. |pypi| image:: https://img.shields.io/pypi/v/hcli-hai?label=hcli-hai
106
+ :target: https://pypi.org/project/hcli-hai
107
+ .. |pyver| image:: https://img.shields.io/pypi/pyversions/hcli-hai.svg
108
+ :target: https://pypi.org/project/hcli-hai
@@ -0,0 +1,23 @@
1
+ hcli_hai/__init__.py,sha256=1PSyyrcykR_Y-6iCavKuiyGtQAA-21u6cDX3jzHaTgI,65
2
+ hcli_hai/__main__.py,sha256=dFFEtlmYEAet_nyVUEc5nJPZI0DPGf_Oe_cdBYCAXGc,1104
3
+ hcli_hai/config.py,sha256=3GJzdCSD4avTq6SHtRpnjA7NoZt1RStnHtRtEJcJ6KA,535
4
+ hcli_hai/hutils.py,sha256=joiNa9MQC92gdTITQd2f9Ibmmv4t1TuPlwPdBtTLi54,132
5
+ hcli_hai/package.py,sha256=U06cu3Y9ggdqkc7eYzZnfYWheoMAbNURrawOsAQ_nCc,94
6
+ hcli_hai/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ hcli_hai/cli/ai.py,sha256=63Sn2YUN5dMqL_9Bw89F7EqTEI8ZCS6YzfSvsdYEEUM,7139
8
+ hcli_hai/cli/cli.py,sha256=Q5zAsX-w5-5qQAdwAUYlJsgj-hrCxag93q2Y5JaZ6cA,3337
9
+ hcli_hai/cli/config.py,sha256=L0cTwfDIp7WH5VBRcr8_8H38yPOkq0pNy1YYBRIRwlc,3894
10
+ hcli_hai/cli/context.py,sha256=v4T71iGR7u3DiMnFP-O9MQEpeTyCRgiVkEWGDeYDeMY,9734
11
+ hcli_hai/cli/logger.py,sha256=6zqlRJBaLoGJ4FfRFjIQZI7xnfQ-e_bje_uhb3sHwbY,2842
12
+ hcli_hai/cli/model.py,sha256=kxDHtLkTAjjMLbEPNOWap9Q1BTLoo-wdgTruJ0E9qtQ,606
13
+ hcli_hai/cli/template.json,sha256=yLP3v2O-YUVGkR1V67fwU0hKp2VP3KbFu-3vLORt1Ds,16533
14
+ hcli_hai/cli/utils/formatting.py,sha256=bwArMh7a7P6okHhBHz6bN-nu9a2vkPxaA_7Q60NE9pk,368
15
+ hcli_hai/cli/utils/hutils.py,sha256=JdjSPuIXrKayYwiHSiO3wLXoYxQ7vuBZ1RlcJZhB_hU,784
16
+ hcli_hai/cli/utils/summary.py,sha256=7GzoLrqNIHkt6iY2jtDJYa0uGoEGA5PR2iHtDdr51lg,2107
17
+ hcli_hai/data/hcli_hai.1,sha256=UyFmEK_5aOfIiFsbgwYJY3iTehwIx0vTFO1eGQgn0Fw,906
18
+ hcli_hai-2.1.2.dist-info/LICENSE.txt,sha256=CXzR3ceigmiejhpOvStjp4GfgK8b0LQ7HuZJIkwMQE4,1056
19
+ hcli_hai-2.1.2.dist-info/METADATA,sha256=T-dnyp3tlhl3Nfm5jeUtHcEHFXnwWQuwoWNL9MQaYg8,3899
20
+ hcli_hai-2.1.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
21
+ hcli_hai-2.1.2.dist-info/entry_points.txt,sha256=Sm56baWQ59ihHS9_h3fgy9v_J-alcPRi86wnl-6UgLo,52
22
+ hcli_hai-2.1.2.dist-info/top_level.txt,sha256=-h65II6r7uISaCmuM1WvGWvQvRoIyeGmquf2ZaeFcBo,9
23
+ hcli_hai-2.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.3.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ hcli_hai = hcli_hai.__main__:main
@@ -0,0 +1 @@
1
+ hcli_hai