You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running the command:
poetry run python src/main.py --ticker JD
Screenshot
⋯ Warren Buffett [JD] Calculating intrinsic value
Traceback (most recent call last):
File "/home/myusername/projects/aihedge0309/src/main.py", line 278, in
result = run_hedge_fund(
File "/home/myusername/projects/aihedge0309/src/main.py", line 74, in run_hedge_fund
final_state = agent.invoke(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/init.py", line 1929, in invoke
for chunk in self.stream(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/init.py", line 1649, in stream
for _ in runner.tick(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 160, in tick
_panic_or_proceed(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 370, in _panic_or_proceed
raise exc
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/executor.py", line 70, in done
task.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/retry.py", line 44, in run_with_retry
task.proc.invoke(task.input, config)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 410, in invoke
input = context.run(step.invoke, input, config, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 184, in invoke
ret = context.run(self.func, input, **kwargs)
File "/home/myusername/projects/aihedge0309/src/agents/warren_buffett.py", line 69, in warren_buffett_agent
intrinsic_value = intrinsic_value_analysis["intrinsic_value"]
KeyError: 'intrinsic_value'
Additional context
The program crash
The text was updated successfully, but these errors were encountered:
I did git pull, installed all the new dependencies. Ran the same command:
poetry run python src/main.py --ticker JD
I got the same error:
./projects/aihedge0309/src/agents/warren_buffett.py", line 69, in warren_buffett_agent
intrinsic_value = intrinsic_value_analysis["intrinsic_value"]
KeyError: 'intrinsic_value'
Describe the bug
Running the command:
poetry run python src/main.py --ticker JD
Screenshot
⋯ Warren Buffett [JD] Calculating intrinsic value
Traceback (most recent call last):
File "/home/myusername/projects/aihedge0309/src/main.py", line 278, in
result = run_hedge_fund(
File "/home/myusername/projects/aihedge0309/src/main.py", line 74, in run_hedge_fund
final_state = agent.invoke(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/init.py", line 1929, in invoke
for chunk in self.stream(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/init.py", line 1649, in stream
for _ in runner.tick(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 160, in tick
_panic_or_proceed(
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 370, in _panic_or_proceed
raise exc
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/executor.py", line 70, in done
task.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/pregel/retry.py", line 44, in run_with_retry
task.proc.invoke(task.input, config)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 410, in invoke
input = context.run(step.invoke, input, config, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ai-hedge-fund-uuTkxgfd-py3.10/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 184, in invoke
ret = context.run(self.func, input, **kwargs)
File "/home/myusername/projects/aihedge0309/src/agents/warren_buffett.py", line 69, in warren_buffett_agent
intrinsic_value = intrinsic_value_analysis["intrinsic_value"]
KeyError: 'intrinsic_value'
Additional context
The program crash
The text was updated successfully, but these errors were encountered: