olca 0.2.5__tar.gz → 0.2.6__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.
- {olca-0.2.5 → olca-0.2.6}/PKG-INFO +2 -2
- {olca-0.2.5 → olca-0.2.6}/README.md +1 -1
- {olca-0.2.5 → olca-0.2.6}/olca/olcacli.py +15 -23
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/PKG-INFO +2 -2
- {olca-0.2.5 → olca-0.2.6}/pyproject.toml +2 -1
- {olca-0.2.5 → olca-0.2.6}/setup.py +1 -1
- {olca-0.2.5 → olca-0.2.6}/LICENSE +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca/__init__.py +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/entry_points.txt +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.5 → olca-0.2.6}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.5 → olca-0.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: olca
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.6
|
4
4
|
Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
|
5
5
|
Home-page: https://github.com/jgwill/olca
|
6
6
|
Author: Jean GUillaume ISabelle
|
@@ -389,7 +389,7 @@ pip install olca
|
|
389
389
|
To see the available commands and options, use the `--help` flag:
|
390
390
|
|
391
391
|
```bash
|
392
|
-
|
392
|
+
olca2 --help
|
393
393
|
```
|
394
394
|
|
395
395
|
|
@@ -6,16 +6,6 @@ from langchain import hub
|
|
6
6
|
import argparse
|
7
7
|
import yaml
|
8
8
|
|
9
|
-
import langsmith
|
10
|
-
# Initialize LangSmith client
|
11
|
-
LANGSMITH_API_KEY = os.getenv("LANGSMITH_API_KEY")
|
12
|
-
LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
|
13
|
-
if not LANGSMITH_API_KEY and not LANGCHAIN_API_KEY:
|
14
|
-
print("Error: LANGSMITH_API_KEY or LANGCHAIN_API_KEY environment variable is not set.")
|
15
|
-
exit(1)
|
16
|
-
client = langsmith.Client(api_key=LANGSMITH_API_KEY or LANGCHAIN_API_KEY)
|
17
|
-
|
18
|
-
|
19
9
|
#jgwill/olca1
|
20
10
|
#olca1_prompt = hub.pull("jgwill/olca1") #Future use
|
21
11
|
#https://smith.langchain.com/hub/jgwill/olca1
|
@@ -113,8 +103,7 @@ from typing import Literal
|
|
113
103
|
|
114
104
|
from langchain_core.tools import tool
|
115
105
|
|
116
|
-
from
|
117
|
-
#from langgraph.prebuilt import create_react_agent
|
106
|
+
from langgraph.prebuilt import create_react_agent
|
118
107
|
from langgraph.errors import GraphRecursionError
|
119
108
|
|
120
109
|
@tool
|
@@ -163,37 +152,40 @@ def _parse_args():
|
|
163
152
|
|
164
153
|
def main():
|
165
154
|
args = _parse_args()
|
166
|
-
olca_config_file = '
|
167
|
-
olca_new_config_file = 'olca.yml'
|
155
|
+
olca_config_file = 'olca.yml'
|
168
156
|
|
169
157
|
if args.init:
|
170
|
-
if os.path.exists(
|
158
|
+
if os.path.exists(olca_config_file):
|
171
159
|
print("Error: Configuration file already exists. Cannot run 'olca init'.")
|
172
160
|
return
|
173
161
|
if args.yes:
|
174
|
-
|
162
|
+
pass
|
175
163
|
else:
|
176
164
|
generate_config_example()
|
177
165
|
return
|
178
166
|
|
179
|
-
if os.path.exists(
|
180
|
-
olca_config_file = olca_new_config_file
|
181
|
-
elif os.path.exists(olca_config_file):
|
182
|
-
print("Warning: 'olca_config.yaml' is deprecated. Please use 'olca.yml' instead.")
|
183
|
-
else:
|
167
|
+
if not os.path.exists(olca_config_file):
|
184
168
|
generate_config_example()
|
185
169
|
return
|
186
170
|
|
187
171
|
config = load_config(olca_config_file)
|
188
172
|
|
189
173
|
# Check for tracing flag in config and CLI
|
190
|
-
tracing_enabled = config.get('tracing', False) or args.tracing
|
174
|
+
tracing_enabled = config.get('tracing', False) or args.tracing or os.getenv("LANGCHAIN_TRACING_V2") == "true"
|
191
175
|
if tracing_enabled:
|
192
176
|
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
193
177
|
if not os.getenv("LANGCHAIN_API_KEY"):
|
194
178
|
print("Error: LANGCHAIN_API_KEY environment variable is required for tracing. Please set it up at : https://smith.langchain.com/settings")
|
195
179
|
exit(1)
|
196
|
-
|
180
|
+
# Initialize LangSmith client
|
181
|
+
import langsmith
|
182
|
+
LANGSMITH_API_KEY = os.getenv("LANGSMITH_API_KEY")
|
183
|
+
LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
|
184
|
+
if not LANGSMITH_API_KEY and not LANGCHAIN_API_KEY:
|
185
|
+
print("Error: LANGSMITH_API_KEY or LANGCHAIN_API_KEY environment variable is not set.")
|
186
|
+
exit(1)
|
187
|
+
client = langsmith.Client(api_key=LANGSMITH_API_KEY or LANGCHAIN_API_KEY)
|
188
|
+
|
197
189
|
try:
|
198
190
|
|
199
191
|
api_key_variable = "OPENAI_API_KEY"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: olca
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.6
|
4
4
|
Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
|
5
5
|
Home-page: https://github.com/jgwill/olca
|
6
6
|
Author: Jean GUillaume ISabelle
|
@@ -389,7 +389,7 @@ pip install olca
|
|
389
389
|
To see the available commands and options, use the `--help` flag:
|
390
390
|
|
391
391
|
```bash
|
392
|
-
|
392
|
+
olca2 --help
|
393
393
|
```
|
394
394
|
|
395
395
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='olca',
|
5
|
-
version = "0.2.
|
5
|
+
version = "0.2.6",
|
6
6
|
author='Jean GUillaume ISabelle',
|
7
7
|
author_email='jgi@jgwill.com',
|
8
8
|
description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|