olca 0.2.62__tar.gz → 0.2.63__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.62
3
+ Version: 0.2.63
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
@@ -375,7 +375,6 @@ oLCa is a Python package that provides a CLI tool for Experimenting Langchain wi
375
375
 
376
376
  ## Features
377
377
 
378
-
379
378
  ## Installation
380
379
 
381
380
  To install the package, you can use pip:
@@ -384,11 +383,31 @@ To install the package, you can use pip:
384
383
  pip install olca
385
384
  ```
386
385
 
386
+ ## Quick Start
387
+
388
+ 1. Install the package:
389
+ ```bash
390
+ pip install olca
391
+ ```
392
+ 2. Initialize configuration:
393
+ ```bash
394
+ olca init
395
+ ```
396
+ 3. Run the CLI with tracing:
397
+ ```bash
398
+ olca -T
399
+ ```
400
+
401
+ ## Environment Variables
402
+
403
+ Set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_HOST for tracing with Langfuse.
404
+ Set LANGCHAIN_API_KEY for LangSmith tracing.
405
+ Optionally, set OPENAI_API_KEY for OpenAI usage.
406
+
387
407
  ## Usage
388
408
 
389
409
  ### CLI Tool
390
410
 
391
-
392
411
  #### Help
393
412
 
394
413
  To see the available commands and options, use the `--help` flag:
@@ -397,8 +416,6 @@ To see the available commands and options, use the `--help` flag:
397
416
  olca2 --help
398
417
  ```
399
418
 
400
-
401
-
402
419
  ## fusewill
403
420
 
404
421
  The `fusewill` command is a CLI tool that provides functionalities for interacting with Langfuse, including tracing, dataset management, and prompt operations.
@@ -407,12 +424,11 @@ The `fusewill` command is a CLI tool that provides functionalities for interacti
407
424
 
408
425
  To see the available commands and options for `fusewill`, use the `--help` flag:
409
426
 
410
-
411
427
  ----
428
+
412
429
  IMPORTED README from olca1
413
430
  ----
414
431
 
415
-
416
432
  ### Olca
417
433
 
418
434
  The olca.py script is designed to function as a command-line interface (CLI) agent. It performs various tasks based on given inputs and files present in the directory. The agent is capable of creating directories, producing reports, and writing instructions for self-learning. It operates within a GitHub repository environment and can commit and push changes if provided with an issue ID. The script ensures that it logs its internal actions and follows specific guidelines for handling tasks and reporting, without modifying certain configuration files or checking out branches unless explicitly instructed.
@@ -4,7 +4,6 @@ oLCa is a Python package that provides a CLI tool for Experimenting Langchain wi
4
4
 
5
5
  ## Features
6
6
 
7
-
8
7
  ## Installation
9
8
 
10
9
  To install the package, you can use pip:
@@ -13,11 +12,31 @@ To install the package, you can use pip:
13
12
  pip install olca
14
13
  ```
15
14
 
15
+ ## Quick Start
16
+
17
+ 1. Install the package:
18
+ ```bash
19
+ pip install olca
20
+ ```
21
+ 2. Initialize configuration:
22
+ ```bash
23
+ olca init
24
+ ```
25
+ 3. Run the CLI with tracing:
26
+ ```bash
27
+ olca -T
28
+ ```
29
+
30
+ ## Environment Variables
31
+
32
+ Set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_HOST for tracing with Langfuse.
33
+ Set LANGCHAIN_API_KEY for LangSmith tracing.
34
+ Optionally, set OPENAI_API_KEY for OpenAI usage.
35
+
16
36
  ## Usage
17
37
 
18
38
  ### CLI Tool
19
39
 
20
-
21
40
  #### Help
22
41
 
23
42
  To see the available commands and options, use the `--help` flag:
@@ -26,8 +45,6 @@ To see the available commands and options, use the `--help` flag:
26
45
  olca2 --help
27
46
  ```
28
47
 
29
-
30
-
31
48
  ## fusewill
32
49
 
33
50
  The `fusewill` command is a CLI tool that provides functionalities for interacting with Langfuse, including tracing, dataset management, and prompt operations.
@@ -36,12 +53,11 @@ The `fusewill` command is a CLI tool that provides functionalities for interacti
36
53
 
37
54
  To see the available commands and options for `fusewill`, use the `--help` flag:
38
55
 
39
-
40
56
  ----
57
+
41
58
  IMPORTED README from olca1
42
59
  ----
43
60
 
44
-
45
61
  ### Olca
46
62
 
47
63
  The olca.py script is designed to function as a command-line interface (CLI) agent. It performs various tasks based on given inputs and files present in the directory. The agent is capable of creating directories, producing reports, and writing instructions for self-learning. It operates within a GitHub repository environment and can commit and push changes if provided with an issue ID. The script ensures that it logs its internal actions and follows specific guidelines for handling tasks and reporting, without modifying certain configuration files or checking out branches unless explicitly instructed.
@@ -8,7 +8,7 @@ import argparse
8
8
  import yaml
9
9
  from olca.utils import load_environment, initialize_langfuse
10
10
  from olca.tracing import TracingManager
11
- from olca.olcahelper import setup_required_directories, initialize_config_file
11
+ from olca.olcahelper import setup_required_directories, initialize_config_file, prepare_input
12
12
  from prompts import SYSTEM_PROMPT_APPEND, HUMAN_APPEND_PROMPT
13
13
 
14
14
  #jgwill/olca1
@@ -128,18 +128,6 @@ def print_stream(stream):
128
128
  except Exception as e:
129
129
  print(s)
130
130
 
131
- def prepare_input(user_input, system_instructions,append_prompt=True, human=False):
132
- appended_prompt = system_instructions + SYSTEM_PROMPT_APPEND if append_prompt else system_instructions
133
- appended_prompt = appended_prompt + HUMAN_APPEND_PROMPT if human else appended_prompt
134
-
135
- inputs = {"messages": [
136
- ("system",
137
- appended_prompt),
138
- ("user", user_input )
139
- ]}
140
-
141
- return inputs,system_instructions,user_input
142
-
143
131
  OLCA_DESCRIPTION = "OlCA (Orpheus Langchain CLI Assistant) (very Experimental and dangerous)"
144
132
  OLCA_EPILOG = "For more information: https://github.com/jgwill/orpheuspypractice/wiki/olca"
145
133
  OLCA_USAGE="olca [-D] [-H] [-M] [-T] [init] [-y]"
@@ -65,3 +65,13 @@ def initialize_config_file():
65
65
  except KeyboardInterrupt:
66
66
  print("\nConfiguration canceled by user.")
67
67
  exit(0)
68
+
69
+ def prepare_input(user_input, system_instructions, append_prompt=True, human=False):
70
+ from olca.prompts import SYSTEM_PROMPT_APPEND, HUMAN_APPEND_PROMPT
71
+ appended_prompt = system_instructions + SYSTEM_PROMPT_APPEND if append_prompt else system_instructions
72
+ appended_prompt = appended_prompt + HUMAN_APPEND_PROMPT if human else appended_prompt
73
+ inputs = {"messages": [
74
+ ("system", appended_prompt),
75
+ ("user", user_input)
76
+ ]}
77
+ return inputs, system_instructions, user_input
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.62
3
+ Version: 0.2.63
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
@@ -375,7 +375,6 @@ oLCa is a Python package that provides a CLI tool for Experimenting Langchain wi
375
375
 
376
376
  ## Features
377
377
 
378
-
379
378
  ## Installation
380
379
 
381
380
  To install the package, you can use pip:
@@ -384,11 +383,31 @@ To install the package, you can use pip:
384
383
  pip install olca
385
384
  ```
386
385
 
386
+ ## Quick Start
387
+
388
+ 1. Install the package:
389
+ ```bash
390
+ pip install olca
391
+ ```
392
+ 2. Initialize configuration:
393
+ ```bash
394
+ olca init
395
+ ```
396
+ 3. Run the CLI with tracing:
397
+ ```bash
398
+ olca -T
399
+ ```
400
+
401
+ ## Environment Variables
402
+
403
+ Set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_HOST for tracing with Langfuse.
404
+ Set LANGCHAIN_API_KEY for LangSmith tracing.
405
+ Optionally, set OPENAI_API_KEY for OpenAI usage.
406
+
387
407
  ## Usage
388
408
 
389
409
  ### CLI Tool
390
410
 
391
-
392
411
  #### Help
393
412
 
394
413
  To see the available commands and options, use the `--help` flag:
@@ -397,8 +416,6 @@ To see the available commands and options, use the `--help` flag:
397
416
  olca2 --help
398
417
  ```
399
418
 
400
-
401
-
402
419
  ## fusewill
403
420
 
404
421
  The `fusewill` command is a CLI tool that provides functionalities for interacting with Langfuse, including tracing, dataset management, and prompt operations.
@@ -407,12 +424,11 @@ The `fusewill` command is a CLI tool that provides functionalities for interacti
407
424
 
408
425
  To see the available commands and options for `fusewill`, use the `--help` flag:
409
426
 
410
-
411
427
  ----
428
+
412
429
  IMPORTED README from olca1
413
430
  ----
414
431
 
415
-
416
432
  ### Olca
417
433
 
418
434
  The olca.py script is designed to function as a command-line interface (CLI) agent. It performs various tasks based on given inputs and files present in the directory. The agent is capable of creating directories, producing reports, and writing instructions for self-learning. It operates within a GitHub repository environment and can commit and push changes if provided with an issue ID. The script ensures that it logs its internal actions and follows specific guidelines for handling tasks and reporting, without modifying certain configuration files or checking out branches unless explicitly instructed.
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.62"
10
+ version = "0.2.63"
11
11
 
12
12
  description = "A Python package for experimental usage of Langchain and Human-in-the-Loop"
13
13
  readme = "README.md"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='olca',
5
- version = "0.2.62",
5
+ version = "0.2.63",
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
File without changes
File without changes
File without changes