versionhq 1.1.7.1__py3-none-any.whl → 1.1.7.2__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.
- versionhq/__init__.py +1 -1
- versionhq/agent/model.py +1 -1
- versionhq/task/model.py +8 -5
- {versionhq-1.1.7.1.dist-info → versionhq-1.1.7.2.dist-info}/METADATA +1 -1
- {versionhq-1.1.7.1.dist-info → versionhq-1.1.7.2.dist-info}/RECORD +8 -8
- {versionhq-1.1.7.1.dist-info → versionhq-1.1.7.2.dist-info}/LICENSE +0 -0
- {versionhq-1.1.7.1.dist-info → versionhq-1.1.7.2.dist-info}/WHEEL +0 -0
- {versionhq-1.1.7.1.dist-info → versionhq-1.1.7.2.dist-info}/top_level.txt +0 -0
versionhq/__init__.py
CHANGED
versionhq/agent/model.py
CHANGED
@@ -367,7 +367,7 @@ class Agent(ABC, BaseModel):
|
|
367
367
|
"""
|
368
368
|
|
369
369
|
task_prompt = task.prompt()
|
370
|
-
if context:
|
370
|
+
if context is not task.prompt_context: # as `task.prompt()` includes adding `task.prompt_context` to the prompt.
|
371
371
|
task_prompt += context
|
372
372
|
|
373
373
|
tool_results = []
|
versionhq/task/model.py
CHANGED
@@ -153,7 +153,7 @@ class Task(BaseModel):
|
|
153
153
|
tools_called: Optional[List[ToolCalled]] = Field(default_factory=list, description="tools that the agent can use for this task")
|
154
154
|
take_tool_res_as_final: bool = Field(default=False,description="when set True, tools res will be stored in the `TaskOutput`")
|
155
155
|
|
156
|
-
prompt_context: Optional[str] = None
|
156
|
+
prompt_context: Optional[str] = Field(default=None)
|
157
157
|
async_execution: bool = Field(default=False,description="whether the task should be executed asynchronously or not")
|
158
158
|
config: Optional[Dict[str, Any]] = Field(default=None, description="configuration for the agent")
|
159
159
|
callback: Optional[Any] = Field(default=None, description="callback to be executed after the task is completed.")
|
@@ -278,17 +278,20 @@ Your outputs MUST adhere to the following format and should NOT include any irre
|
|
278
278
|
When we have cusotmer/product info, add them to the prompt.
|
279
279
|
"""
|
280
280
|
|
281
|
-
task_slices = [self.description, f"{self.output_prompt}"]
|
281
|
+
task_slices = [self.description, f"{self.output_prompt}", f"Take the following context into consideration: "]
|
282
282
|
|
283
283
|
if self.context:
|
284
284
|
context_outputs = "\n".join([task.output.context_prompting() if hasattr(task, "output") else "" for task in self.context])
|
285
|
-
task_slices.insert(
|
285
|
+
task_slices.insert(len(task_slices), context_outputs)
|
286
286
|
|
287
287
|
if customer:
|
288
|
-
task_slices.insert(
|
288
|
+
task_slices.insert(len(task_slices), f"Customer overview: {customer}")
|
289
289
|
|
290
290
|
if product_overview:
|
291
|
-
task_slices.insert(
|
291
|
+
task_slices.insert(len(task_slices), f"Product overview: {product_overview}")
|
292
|
+
|
293
|
+
if self.prompt_context:
|
294
|
+
task_slices.insert(len(task_slices), self.prompt_context)
|
292
295
|
|
293
296
|
return "\n".join(task_slices)
|
294
297
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
versionhq/__init__.py,sha256=
|
1
|
+
versionhq/__init__.py,sha256=ZRUf-j8kvlaLsgzQHU-EVzvct-p6Rrrm8X7wLmQcgrY,773
|
2
2
|
versionhq/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
versionhq/_utils/cache_handler.py,sha256=zDQKzIn7vp-M2-uepHFxgJstjfftZS5mzXKL_-4uVvI,370
|
4
4
|
versionhq/_utils/i18n.py,sha256=TwA_PnYfDLA6VqlUDPuybdV9lgi3Frh_ASsb_X8jJo8,1483
|
@@ -7,7 +7,7 @@ versionhq/_utils/process_config.py,sha256=ogrhovLbwe0ocQlcohRgBBRtww7C3pk9hikjvg
|
|
7
7
|
versionhq/_utils/rpm_controller.py,sha256=T7waIGeblu5K58erY4lqVLcPsWM7W9UFdU3DG9Dsk0w,2214
|
8
8
|
versionhq/_utils/usage_metrics.py,sha256=c33a_28y8ECUgflsKN3mkNm0fNkWgZmXwybMwIqoKXA,1098
|
9
9
|
versionhq/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
versionhq/agent/model.py,sha256=
|
10
|
+
versionhq/agent/model.py,sha256=nJT3EOkFAEV70fcEeNS8ctkzztONK-HhwMkY39qtEzo,18359
|
11
11
|
versionhq/agent/parser.py,sha256=GhoNQo4WloVM3vGnAmt9lnEOTARX7nWMhJE55rF_5Rs,5500
|
12
12
|
versionhq/agent/TEMPLATES/Backstory.py,sha256=cdngBx1GEv7nroR46FEhnysnBJ9mEVL763_9np6Skkc,395
|
13
13
|
versionhq/agent/TEMPLATES/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -24,7 +24,7 @@ versionhq/llm/llm_vars.py,sha256=YZoXqFBW7XpclUZ14_AAz7WOjoyCXnGcI959GSpX2q0,534
|
|
24
24
|
versionhq/llm/model.py,sha256=PdwisrlrsDqd6gXwXCyGbGTRTeGZ8SXpt_gfua8qunk,8266
|
25
25
|
versionhq/task/__init__.py,sha256=g4mCATnn1mUXxsfQ5p6IpPawr8O421wVIT8kMKEcxQw,180
|
26
26
|
versionhq/task/formatter.py,sha256=N8Kmk9vtrMtBdgJ8J7RmlKNMdZWSmV8O1bDexmCWgU0,643
|
27
|
-
versionhq/task/model.py,sha256=
|
27
|
+
versionhq/task/model.py,sha256=maWDeVm1CfqGw-re42a02-0SXtCmkjXsz_ociB1epfQ,17000
|
28
28
|
versionhq/team/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
versionhq/team/model.py,sha256=pMCt0ZCVgE_pRH2qXlWj-PEZrI77JoRVVzUOZWY1Rws,20140
|
30
30
|
versionhq/team/team_planner.py,sha256=B1UOn_DYVVterUn2CAd80jfO4sViJCCXPJA3abSSugg,2143
|
@@ -32,8 +32,8 @@ versionhq/tool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
versionhq/tool/decorator.py,sha256=Y-j4jkoujD5LUvpe8uf3p5Zagk2XVaRKC9rkIE-2geo,1189
|
33
33
|
versionhq/tool/model.py,sha256=JZOEcZRIEfcrjL8DgrFYDt4YNgMF8rXS26RK6D2x9mc,6906
|
34
34
|
versionhq/tool/tool_handler.py,sha256=e-2VfG9zFpfPG_oMoPXye93GDovs7FuUASWQwUTLrJ0,1498
|
35
|
-
versionhq-1.1.7.
|
36
|
-
versionhq-1.1.7.
|
37
|
-
versionhq-1.1.7.
|
38
|
-
versionhq-1.1.7.
|
39
|
-
versionhq-1.1.7.
|
35
|
+
versionhq-1.1.7.2.dist-info/LICENSE,sha256=7CCXuMrAjPVsUvZrsBq9DsxI2rLDUSYXR_qj4yO_ZII,1077
|
36
|
+
versionhq-1.1.7.2.dist-info/METADATA,sha256=6xxLMRkGhlbN1siAlvNsRQc1JWGTk0hIT4J5ziNMaZQ,14278
|
37
|
+
versionhq-1.1.7.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
38
|
+
versionhq-1.1.7.2.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
|
39
|
+
versionhq-1.1.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|