emergingtrajectories.factsforecaster

Attributes

Classes

Module Contents

emergingtrajectories.factsforecaster.start_system_prompt = "Today's date is {the_date}. You are a researcher helping with economics and politics research....
emergingtrajectories.factsforecaster.start_user_prompt = Multiline-String
Show Value
"""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.
"""
emergingtrajectories.factsforecaster.extend_user_prompt = Multiline-String
Show Value
"""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.

"""
class emergingtrajectories.factsforecaster.FactForecastingAgent(client: emergingtrajectories.recursiveagent.ETClient, chatbot: phasellm.llms.ChatBot, factbase: emergingtrajectories.facts.FactBaseFileCache)

Bases: object

client
chatbot
factbase
setChatBot(chatbot)
getChatBot()
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')
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')