emergingtrajectories.factsforecaster ==================================== .. py:module:: emergingtrajectories.factsforecaster Attributes ---------- .. autoapisummary:: emergingtrajectories.factsforecaster.start_system_prompt emergingtrajectories.factsforecaster.start_user_prompt emergingtrajectories.factsforecaster.extend_user_prompt Classes ------- .. autoapisummary:: emergingtrajectories.factsforecaster.FactForecastingAgent Module Contents --------------- .. py:data:: start_system_prompt :value: "Today's date is {the_date}. You are a researcher helping with economics and politics research.... .. py:data:: start_user_prompt :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """Here is the research: --------------------- {content} --------------------- {additional_facts} Given the above, we need you to do your best to fill in the following blank... {fill_in_the_blank} PLEASE DO THE FOLLOWING: - Provide any further justification ONLY BASED ON THE FACTS AND SOURCES PROVIDED ABOVE. - Explain your forecast and how the facts, insights, etc. support it. Do not simply state a number. - Do not provide a range; provide ONE number. - End your forecast with the filled-in statement: {fill_in_the_blank_2} We realize you are being asked to provide a speculative forecast. We are using this to better understand the world and finance, so please fill in the blank. We will not use this for any active decision-making, but more to learn about the capabilities of AI. """ .. raw:: html
.. py:data:: extend_user_prompt :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """Here is the research: --------------------- {content} --------------------- {additional_facts} In addition to the new content above, we want to UPDATE the forecast from before. Here is the earlier forecast... --------------------- FORECAST: {earlier_forecast_value} JUSTIFICATION: {earlier_forecast} --------------------- Given the above, we need you to do your best to fill in the following blank... {fill_in_the_blank} PLEASE DO THE FOLLOWING: - Provide any further justification ONLY BASED ON THE FACTS AND SOURCES PROVIDED ABOVE. - Explain your forecast and how the facts, insights, etc. support it. Do not simply state a number. - Do not provide a range; provide ONE number. - End your forecast with the filled-in statement: {fill_in_the_blank_2} We realize you are being asked to provide a speculative forecast. We are using this to better understand the world and finance, so please fill in the blank. We will not use this for any active decision-making, but more to learn about the capabilities of AI. """ .. raw:: html
.. py:class:: FactForecastingAgent(client: emergingtrajectories.recursiveagent.ETClient, chatbot: phasellm.llms.ChatBot, factbase: emergingtrajectories.facts.FactBaseFileCache) Bases: :py:obj:`object` .. py:attribute:: client .. py:attribute:: chatbot .. py:attribute:: factbase .. py:method:: setChatBot(chatbot) .. py:method:: getChatBot() .. py:method:: create_forecast(statement: emergingtrajectories.Statement, openai_api_key, et_api_key, google_api_key, google_search_id, google_search_query, facts=None, prediction_agent='Test Agent') .. py:method:: extend_forecast(forecast: emergingtrajectories.Forecast, openai_api_key, et_api_key, google_api_key, google_search_id, google_search_query, facts=None, prediction_agent='Test Agent')