xpander-sdk 2.0.174__tar.gz → 2.0.175__tar.gz

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.
Files changed (104) hide show
  1. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/PKG-INFO +1 -1
  2. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/setup.py +1 -1
  3. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/agents/compactization_agent.py +78 -39
  4. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk.egg-info/PKG-INFO +1 -1
  5. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/LICENSE +0 -0
  6. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/README.md +0 -0
  7. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/pyproject.toml +0 -0
  8. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/setup.cfg +0 -0
  9. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/__init__.py +0 -0
  10. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/consts/__init__.py +0 -0
  11. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/consts/api_routes.py +0 -0
  12. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/core/__init__.py +0 -0
  13. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/core/module_base.py +0 -0
  14. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/core/state.py +0 -0
  15. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/core/xpander_api_client.py +0 -0
  16. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/exceptions/__init__.py +0 -0
  17. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/exceptions/module_exception.py +0 -0
  18. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/__init__.py +0 -0
  19. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/activity.py +0 -0
  20. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/compactization.py +0 -0
  21. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/configuration.py +0 -0
  22. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/deep_planning.py +0 -0
  23. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/events.py +0 -0
  24. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/frameworks.py +0 -0
  25. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/shared.py +0 -0
  26. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/models/user.py +0 -0
  27. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/__init__.py +0 -0
  28. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/__init__.py +0 -0
  29. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/agents_module.py +0 -0
  30. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/models/__init__.py +0 -0
  31. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/models/agent.py +0 -0
  32. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/models/agent_list.py +0 -0
  33. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/models/knowledge_bases.py +0 -0
  34. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/sub_modules/__init__.py +0 -0
  35. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/sub_modules/agent.py +0 -0
  36. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/utils/__init__.py +0 -0
  37. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/agents/utils/generic.py +0 -0
  38. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/__init__.py +0 -0
  39. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/backend_module.py +0 -0
  40. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/frameworks/__init__.py +0 -0
  41. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/frameworks/agno.py +0 -0
  42. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/frameworks/dispatch.py +0 -0
  43. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/utils/__init__.py +0 -0
  44. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/backend/utils/mcp_oauth.py +0 -0
  45. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/__init__.py +0 -0
  46. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/decorators/__init__.py +0 -0
  47. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/decorators/on_boot.py +0 -0
  48. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/decorators/on_shutdown.py +0 -0
  49. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/decorators/on_task.py +0 -0
  50. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/events_module.py +0 -0
  51. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/models/__init__.py +0 -0
  52. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/models/deployments.py +0 -0
  53. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/models/events.py +0 -0
  54. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/utils/__init__.py +0 -0
  55. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/utils/generic.py +0 -0
  56. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/events/utils/git_init.py +0 -0
  57. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/__init__.py +0 -0
  58. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/knowledge_bases_module.py +0 -0
  59. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/models/__init__.py +0 -0
  60. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/models/knowledge_bases.py +0 -0
  61. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/sub_modules/__init__.py +0 -0
  62. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/sub_modules/knowledge_base.py +0 -0
  63. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/sub_modules/knowledge_base_document_item.py +0 -0
  64. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/knowledge_bases/utils/__init__.py +0 -0
  65. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/__init__.py +0 -0
  66. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/models/__init__.py +0 -0
  67. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/models/task.py +0 -0
  68. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/models/tasks_list.py +0 -0
  69. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/sub_modules/__init__.py +0 -0
  70. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/sub_modules/task.py +0 -0
  71. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/tasks_module.py +0 -0
  72. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/utils/__init__.py +0 -0
  73. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tasks/utils/files.py +0 -0
  74. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/__init__.py +0 -0
  75. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/decorators/__init__.py +0 -0
  76. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/decorators/register_tool.py +0 -0
  77. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/models/__init__.py +0 -0
  78. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/models/mcp.py +0 -0
  79. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/models/tool_invocation_result.py +0 -0
  80. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/sub_modules/__init__.py +0 -0
  81. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/sub_modules/tool.py +0 -0
  82. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/tools_repository_module.py +0 -0
  83. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/utils/__init__.py +0 -0
  84. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/utils/generic.py +0 -0
  85. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/utils/local_tools.py +0 -0
  86. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/modules/tools_repository/utils/schemas.py +0 -0
  87. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/__init__.py +0 -0
  88. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/agents/__init__.py +0 -0
  89. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/env.py +0 -0
  90. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/event_loop.py +0 -0
  91. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/generic.py +0 -0
  92. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk/utils/tools.py +0 -0
  93. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk.egg-info/SOURCES.txt +0 -0
  94. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk.egg-info/dependency_links.txt +0 -0
  95. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk.egg-info/requires.txt +0 -0
  96. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/src/xpander_sdk.egg-info/top_level.txt +0 -0
  97. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_agents_module.py +0 -0
  98. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_api_client.py +0 -0
  99. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_backend_module.py +0 -0
  100. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_boot_shutdown_handlers.py +0 -0
  101. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_configuration.py +0 -0
  102. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_knowledge_bases_module.py +0 -0
  103. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_tasks_module.py +0 -0
  104. {xpander_sdk-2.0.174 → xpander_sdk-2.0.175}/tests/test_tools_repository.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xpander-sdk
3
- Version: 2.0.174
3
+ Version: 2.0.175
4
4
  Summary: xpander.ai Backend-as-a-service for AI Agents - SDK
5
5
  Home-page: https://www.xpander.ai
6
6
  Author: xpanderAI
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="xpander-sdk",
8
- version="2.0.174",
8
+ version="2.0.175",
9
9
  author="xpanderAI",
10
10
  author_email="dev@xpander.ai",
11
11
  description="xpander.ai Backend-as-a-service for AI Agents - SDK",
@@ -56,33 +56,58 @@ def run_task_compactization(message: str, task: "Task", uncompleted_tasks: List[
56
56
  name="Task Compactization Agent",
57
57
  model=agno_args.get("model"),
58
58
  description="""
59
- You analyze a running agent execution that has uncompleted tasks and produce a seamless continuation package.
59
+ You are a system component that handles early/unapproved agent task exits.
60
60
 
61
- Your output enables the execution to resume exactly where it left off and complete ALL remaining tasks.
61
+ When an agent stops execution with uncompleted tasks, you analyze the state and generate a continuation prompt
62
+ that will be sent DIRECTLY to that agent to resume its work.
62
63
 
63
- You produce:
64
- 1. A continuation prompt that picks up mid-execution (NOT a new task start)
65
- 2. Comprehensive context that preserves all critical state, decisions, and artifacts
64
+ Your output becomes the agent's next input - it must guide the agent to:
65
+ 1. Continue from where it stopped (seamlessly, no restart)
66
+ 2. Complete ALL remaining uncompleted tasks
67
+ 3. Use correct tools (especially xpask_for_information for questions)
68
+ 4. NOT expose internal orchestration (xp* tools, task IDs) to the user
66
69
 
67
- CRITICAL: ALL uncompleted tasks provided to you MUST be addressed and marked as completed in your continuation plan.
70
+ You are a bridge between system orchestration and agent execution.
68
71
  """,
69
72
  role="""
70
- You are a **Task Compactization Agent** specialized in maintaining execution continuity.
73
+ You are the **Compactization Agent** - a system component for handling early agent exits.
71
74
 
72
- Your mission: Convert a partially-executed agent run into a precise continuation package that allows the execution
73
- to resume seamlessly and complete ALL uncompleted tasks without repetition or confusion.
75
+ **The Flow:**
76
+ 1. Agent A (e.g., researcher) starts task and creates plan
77
+ 2. Agent A executes but stops/exits early with uncompleted tasks
78
+ 3. System detects uncompleted tasks and triggers YOU
79
+ 4. You analyze Agent A's execution state and generate continuation guidance
80
+ 5. Your output goes DIRECTLY to Agent A as its next prompt
81
+ 6. Agent A resumes and completes remaining work
74
82
 
75
- You are NOT starting a new task - you are continuing a running process that was interrupted.
76
- The next agent run will receive your continuation prompt as the next message in an ongoing conversation.
83
+ **Your Mission:**
84
+ Generate a prompt that Agent A will receive to continue its work. This prompt must:
85
+ - Guide Agent A on what's been done and what remains
86
+ - Correct any protocol violations (e.g., asking questions without tool)
87
+ - Instruct Agent A to NOT expose internal xp* tools to the user
88
+ - Make Agent A's continuation feel seamless to the user
89
+
90
+ You are NOT talking to the user. You are talking to Agent A.
77
91
  """,
78
92
  instructions="""
93
+ ## Your Role: Agent-to-Agent Handoff
94
+
95
+ You are writing a message that will be sent TO the agent (Agent A) to continue its task.
96
+
97
+ **Key Understanding:**
98
+ - Your `new_task_prompt` = The message Agent A will receive
99
+ - Agent A will see this message and continue working
100
+ - The user will see Agent A's response, not your message directly
101
+ - You must guide Agent A to work seamlessly without exposing internals
102
+
79
103
  ## Core Principles
80
104
 
81
- * **This is a CONTINUATION, not a restart.** The next prompt continues an active execution mid-conversation.
82
- * **ALL uncompleted tasks MUST be completed.** Your continuation plan must ensure every uncompleted task gets done and marked complete.
83
- * **Stay factual.** Do not invent details. Use "Unknown" for missing information and list it under open questions.
84
- * **Preserve exact state.** Keep precise names, IDs, numbers, file paths, tool outputs, and user wording unchanged.
85
- * **Track completion accurately.** Never imply completion. Clearly distinguish what IS done from what REMAINS to be done.
105
+ * **You are guiding Agent A**, not the user
106
+ * **Agent A must complete ALL uncompleted tasks** - tell it what remains
107
+ * **Stay factual** - Use "Unknown" for missing info
108
+ * **Preserve exact state** - Keep IDs, names, paths, outputs unchanged in context
109
+ * **Correct violations** - If Agent A asked questions without tool, tell it to use the tool
110
+ * **Hide orchestration** - Instruct Agent A to NOT mention xp* tools, task IDs, or internals to user
86
111
 
87
112
  ## What You Must Capture
88
113
 
@@ -115,17 +140,19 @@ def run_task_compactization(message: str, task: "Task", uncompleted_tasks: List[
115
140
  - Phrases like "Before I proceed", "I need clarification", "Please choose", "Which option"
116
141
  - Questions written in response text after xpstart_execution_plan was called
117
142
 
118
- ## Continuation Prompt Requirements
143
+ ## Continuation Prompt: Your Message TO Agent A
144
+
145
+ Your `new_task_prompt` is what Agent A will read. Structure it as guidance TO the agent:
146
+
147
+ 1. **IF protocol violation:** "You asked questions without using xpask_for_information tool. Use the tool for questions."
148
+ 2. **Orient Agent A:** "You were working on [task]. You've completed [X, Y, Z]."
149
+ 3. **State what remains:** "You still need to complete: [list remaining work in plain language]."
150
+ 4. **Guide next steps:** "Continue by: [step-by-step what to do next]."
151
+ 5. **Hide internals instruction:** "Important: Do NOT mention xp* tools, task IDs, or internal workflow to the user. Present your work naturally."
152
+ 6. **Enforce protocol:** "Mark each task complete immediately after finishing using xpcomplete_agent_plan_item."
153
+ 7. **Natural tone:** "Continue your response to the user seamlessly, as if you never stopped."
119
154
 
120
- Your `new_task_prompt` must:
121
- 1. **IF protocol violation detected:** START with "CRITICAL PROTOCOL VIOLATION DETECTED" warning (see above)
122
- 2. Resume where execution stopped ("Continuing from where we left off...")
123
- 3. NOT repeat completed work
124
- 4. List ALL uncompleted tasks by ID and title
125
- 5. Provide step-by-step actions to complete each task
126
- 6. Explicitly instruct to mark each task complete using xpcomplete_agent_plan_item after finishing it
127
- 7. Sound like the next message in an ongoing conversation, not a new task
128
- 8. **IF protocol violation:** Emphasize the requirement to use xpask_for_information tool for any questions
155
+ You are INSTRUCTING Agent A on how to continue, not writing the user-facing response yourself.
129
156
 
130
157
  ## Task Context Requirements
131
158
 
@@ -146,23 +173,35 @@ def run_task_compactization(message: str, task: "Task", uncompleted_tasks: List[
146
173
  - Write a "fresh start" prompt
147
174
 
148
175
  ✅ **ALWAYS:**
149
- - Write continuation prompts that resume mid-execution
150
- - Include all uncompleted task IDs and titles
151
- - Provide specific actions to complete each task
152
- - Instruct to mark tasks complete using the plan tools
153
- - Preserve exact state, IDs, names, and wording
154
- - **Check for protocol violations** and correct them in your continuation prompt
155
- - If agent asked questions in text after plan started, instruct to use xpask_for_information tool instead
176
+ - Write as instructions TO Agent A (you're guiding it, not doing its work)
177
+ - Tell Agent A what it's done and what remains
178
+ - Instruct Agent A to complete remaining tasks
179
+ - Tell Agent A to use correct tools (xpask_for_information for questions)
180
+ - Instruct Agent A to hide xp* tools and internals from user
181
+ - Include technical details (task IDs, tool names) in task_context for Agent A's reference
182
+ - Correct any protocol violations Agent A made
156
183
  """,
157
184
  expected_output="""
158
185
  Return a JSON object with exactly these two fields:
159
186
 
160
- - new_task_prompt (string): A continuation message that resumes the running execution mid-conversation.
161
- IF PROTOCOL VIOLATION DETECTED (agent asked questions after xpstart_execution_plan):
162
- - START WITH: "CRITICAL PROTOCOL VIOLATION DETECTED: You asked questions directly after starting the plan. You MUST use xpask_for_information tool to ask questions once plan is running. NEVER write questions in your response text after calling xpstart_execution_plan."
163
- Then: (1) list ALL uncompleted tasks with their IDs and titles, (2) give step-by-step actions to finish each,
164
- (3) explicitly instruct to mark each task complete using xpcomplete_agent_plan_item after finishing it, and
165
- (4) read like the next message in an ongoing conversation (NOT a fresh start).
187
+ - new_task_prompt (string): Instructions TO Agent A for continuing its task.
188
+
189
+ This message will be sent directly to Agent A. Write it as guidance:
190
+
191
+ IF PROTOCOL VIOLATION:
192
+ "You asked questions without using xpask_for_information tool. Use the tool for questions after plan starts."
193
+
194
+ Then:
195
+ "You were working on [task name]. You've completed [work done in plain language].
196
+
197
+ You still need to complete: [list remaining uncompleted work naturally].
198
+
199
+ Continue by: [specific steps for Agent A to take].
200
+
201
+ IMPORTANT: When responding to the user, do NOT mention xp* tools, task IDs, or internal workflow.
202
+ Present your work naturally as if execution never stopped. The user should not see any interruption.
203
+
204
+ Mark each task complete immediately after finishing using xpcomplete_agent_plan_item."
166
205
 
167
206
  - task_context (string): Comprehensive context for continuation.
168
207
  IF PROTOCOL VIOLATION DETECTED:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xpander-sdk
3
- Version: 2.0.174
3
+ Version: 2.0.175
4
4
  Summary: xpander.ai Backend-as-a-service for AI Agents - SDK
5
5
  Home-page: https://www.xpander.ai
6
6
  Author: xpanderAI
File without changes
File without changes
File without changes