improve task generation data extraction goal (#2137)

This commit is contained in:
Shuchang Zheng
2025-04-12 15:17:10 -07:00
committed by GitHub
parent cb46232cff
commit 6cf39446eb
2 changed files with 3 additions and 1 deletions

View File

@@ -1245,6 +1245,7 @@ class ForgeAgent:
"generate_summary": "concise",
},
truncation="auto",
temperature=0,
)
previous_response = first_response
input_tokens = first_response.usage.input_tokens or 0
@@ -1299,6 +1300,7 @@ class ForgeAgent:
"generate_summary": "concise",
},
truncation="auto",
temperature=0,
)
input_tokens = current_response.usage.input_tokens or 0
output_tokens = current_response.usage.output_tokens or 0

View File

@@ -8,7 +8,7 @@ navigation_goal_reasoning: str. This is a required field. The reason why navigat
is_navigation_goal_required: bool. This is a required field. Based on the navigation_goal_reasoning, whether the navigation goal is required to achieve the task.
navigation_goal: str. This is an optional field. If is_navigation_goal_required is true, then this field should be provided. Otherwise, provide the value null. The value should be a string that we can use as an input to a Large Language Modal. It needs to tell the agent what actions need to be taken to achieve the task. It needs to define a single goal. If this field is provided, you must include explicit completion criteria. Provide completion criteria by completing the sentence: "COMPLETE when...". You can define guardrails that could help the agent from taking certain actions or getting derailed.
data_extraction_goal_reasoning: str. This is a required field. The reason why data extraction goal is needed to achieve the goal. Data extraction goal is needed when the agent needs to extract data from the website to achieve the goal.
data_extraction_goal_reasoning: str. This is a required field. The reason why data extraction goal is needed to achieve the goal. Data extraction goal is needed when the agent needs to extract data from the website to achieve the goal. If the user is searching for something, looking for information or specifically trying to extract information along side the goal, consider it an intention to extract information. Phrases like "find something", "show me something", "search something", "return something" and so on indicate the intention to extract information.
is_data_extraction_goal_required: bool. This is a required field. Based on data_extraction_goal_reasoning, whether the data extraction goal is required to achieve the goal.
data_extraction_goal: str. This is an optional field. The value should be a string that we can use as an input to a Large Language Modal. It needs to tell the agent the goal in terms of extracting data. It needs to be a single goal.
navigation_payload: json. This is an optional field. The value should be JSON. Use this field if there is any information for the agent to be able to complete the task such as values that can help fill a form, parameters for queries and so on.