olca 0.2.83__tar.gz → 0.2.85__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.83
3
+ Version: 0.2.85
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
@@ -16,7 +16,7 @@ warnings.filterwarnings("ignore", message="The function `loads` is in beta. It i
16
16
  DEBUG_MODE=False
17
17
 
18
18
  prompt=None
19
- def _create_agent_tools(tool_name = "arxiv",temperature = 0.0,tool_hub_tag = "jgwill/react",chatbot_model = "gpt-4o-mini"):
19
+ def _create_agent_tools(tool_name = "arxiv",temperature = 0.0,tool_hub_tag = "jgwill/oiv",chatbot_model = "gpt-4o-mini"):
20
20
  global prompt
21
21
 
22
22
  llm = ChatOpenAI(temperature=temperature,name=chatbot_model)
@@ -54,7 +54,7 @@ def create_agent_executor(tools, agent) -> AgentExecutor:
54
54
  # tools, agent=_create_agent_tools()
55
55
 
56
56
  # agent_executor=create_agent_executor(tools, agent)
57
- def ask_agent(input_request, agent_executor=None,tool_hub_tag = "jgwill/react",chatbot_model = "gpt-4o-mini"):
57
+ def ask_agent(input_request, agent_executor=None,tool_hub_tag = "jgwill/oiv",chatbot_model = "gpt-4o-mini"):
58
58
  if agent_executor is None:
59
59
  tools, agent = _create_agent_tools(tool_hub_tag=tool_hub_tag)
60
60
  agent_executor = create_agent_executor(tools, agent)
@@ -77,7 +77,7 @@ def serialize_response_to_json_file(resp, filename):
77
77
 
78
78
  def serialize_response_to_markdown(o):
79
79
  output=o["output"]
80
- string_md="# Output\n"
80
+ string_md=""
81
81
  #string_md+=f"## Model\n{o['model']}\n"
82
82
  #string_md+=f"## Prompt\n{o['prompt']['prompt']}\n"
83
83
  string_md+=f"## Input\n{o['input']}\n"
@@ -95,7 +95,7 @@ def main():
95
95
  args = parse_cli_arguments()
96
96
 
97
97
  input_request = args.input
98
- tool_hub_tag = "jgwill/react" if args.hub_tag is None else args.hub_tag
98
+ tool_hub_tag = "jgwill/oiv" if args.hub_tag is None else args.hub_tag
99
99
  resp = ask_agent(input_request,tool_hub_tag=tool_hub_tag,chatbot_model=args.chatbot_model)
100
100
  outdir=os.path.join(os.getcwd(),"output")
101
101
  os.makedirs(outdir, exist_ok=True)
@@ -131,7 +131,7 @@ def parse_cli_arguments():
131
131
  help='an input request for the searched article')
132
132
  ##--hub_tag
133
133
  parser.add_argument('-H','-ht','--hub_tag', type=str,
134
- help='The hub tag for the process',default="jgwill/react")
134
+ help='The hub tag for the process',default="jgwill/oiv")
135
135
  #--chatbot_model
136
136
  parser.add_argument('-M','-m','--chatbot_model', type=str,
137
137
  help='a chatbot model for the processing',default="gpt-4o-mini")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.83
3
+ Version: 0.2.85
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
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.83"
10
+ version = "0.2.85"
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.83",
5
+ version = "0.2.85",
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
File without changes
File without changes
File without changes