olca 0.2.83__py3-none-any.whl → 0.2.85__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.
- olca/oiv.py +5 -5
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/METADATA +1 -1
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/RECORD +7 -7
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/WHEEL +1 -1
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/LICENSE +0 -0
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/entry_points.txt +0 -0
- {olca-0.2.83.dist-info → olca-0.2.85.dist-info}/top_level.txt +0 -0
olca/oiv.py
CHANGED
@@ -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/
|
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/
|
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="
|
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/
|
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/
|
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,15 +1,15 @@
|
|
1
1
|
olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
|
2
2
|
olca/fusewill_cli.py,sha256=AJZ-s23F5IMtukob9Hh4yMUG8mc_WbN38W9U-L7h7aM,18650
|
3
3
|
olca/fusewill_utils.py,sha256=Ic4W4_iOI6e741RvOFURW47P8RKMwpoKQwU2cjwjYUg,19192
|
4
|
-
olca/oiv.py,sha256=
|
4
|
+
olca/oiv.py,sha256=bSxs8IWTxzSBdmXLMtEHEe_8YNJDxSC3nBbpihCPJGg,4592
|
5
5
|
olca/olcacli.py,sha256=wwn4mL1kGonigI9w6UEsnFJDWQ6yONxqvogjrCj-Og4,11246
|
6
6
|
olca/olcahelper.py,sha256=v16ETPboJFdJdkL1iAJ86_oAhkFo5jMFfx5oivOG8kA,4115
|
7
7
|
olca/prompts.py,sha256=q7lvDZ8n_K6ea2nu3K5R2fgBgQYrCIEjh0cA9fUlMFI,3697
|
8
8
|
olca/tracing.py,sha256=cEfPNZoI-PbMHFpX8bvY7OajeW4yvZBMycqwj6sRpDE,1637
|
9
9
|
olca/utils.py,sha256=kDxKwD51234OvA6PIW9IfAND8DHwd8lSyOvSf4abvPE,916
|
10
|
-
olca-0.2.
|
11
|
-
olca-0.2.
|
12
|
-
olca-0.2.
|
13
|
-
olca-0.2.
|
14
|
-
olca-0.2.
|
15
|
-
olca-0.2.
|
10
|
+
olca-0.2.85.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
11
|
+
olca-0.2.85.dist-info/METADATA,sha256=1UtkDCl2SdEW0OiIZL15_rHaBPmctyq-VXGk-9bJnWg,26000
|
12
|
+
olca-0.2.85.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
13
|
+
olca-0.2.85.dist-info/entry_points.txt,sha256=W2UkinpMZYsCLH54must9ahwbzCRl-rekcZ7rL5u3wA,123
|
14
|
+
olca-0.2.85.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
|
15
|
+
olca-0.2.85.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|