grasp_agents 0.5.2__tar.gz → 0.5.3__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.
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/PKG-INFO +1 -1
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/pyproject.toml +1 -1
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/workflow/looped_workflow.py +34 -33
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/.gitignore +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/LICENSE.md +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/README.md +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/cloud_llm.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/comm_processor.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/costs_dict.yaml +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/errors.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/generics_utils.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/grasp_logging.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/http_client.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/completion_chunk_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/completion_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/lite_llm.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/message_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/llm.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/llm_agent.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/llm_agent_memory.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/llm_policy_executor.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/memory.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/completion_chunk_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/completion_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/content_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/message_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/openai_llm.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/tool_converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/packet.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/packet_pool.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/printer.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/processor.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/prompt_builder.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/rate_limiting/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/rate_limiting/rate_limiter_chunked.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/rate_limiting/types.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/rate_limiting/utils.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/run_context.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/runner.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/completion.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/completion_chunk.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/content.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/converters.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/events.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/io.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/message.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/typing/tool.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/usage_tracker.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/utils.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/workflow/__init__.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/workflow/sequential_workflow.py +0 -0
- {grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/workflow/workflow_processor.py +0 -0
@@ -151,36 +151,37 @@ class LoopedWorkflow(
|
|
151
151
|
num_iterations = 0
|
152
152
|
exit_packet: Packet[OutT_co] | None = None
|
153
153
|
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
154
|
+
while True:
|
155
|
+
for subproc in self.subprocs:
|
156
|
+
async for event in subproc.run_stream(
|
157
|
+
chat_inputs=chat_inputs,
|
158
|
+
in_packet=packet,
|
159
|
+
in_args=in_args,
|
160
|
+
forgetful=forgetful,
|
161
|
+
call_id=f"{call_id}/{subproc.name}",
|
162
|
+
ctx=ctx,
|
163
|
+
):
|
164
|
+
if isinstance(event, ProcPacketOutputEvent):
|
165
|
+
packet = event.data
|
166
|
+
yield event
|
167
|
+
|
168
|
+
if subproc is self._end_proc:
|
169
|
+
num_iterations += 1
|
170
|
+
exit_packet = cast("Packet[OutT_co]", packet)
|
171
|
+
if self._exit_workflow_loop(exit_packet, ctx=ctx):
|
172
|
+
yield WorkflowResultEvent(
|
173
|
+
data=exit_packet, proc_name=self.name, call_id=call_id
|
174
|
+
)
|
175
|
+
return
|
176
|
+
if num_iterations >= self._max_iterations:
|
177
|
+
logger.info(
|
178
|
+
f"Max iterations reached ({self._max_iterations}). "
|
179
|
+
"Exiting loop."
|
180
|
+
)
|
181
|
+
yield WorkflowResultEvent(
|
182
|
+
data=exit_packet, proc_name=self.name, call_id=call_id
|
183
|
+
)
|
184
|
+
return
|
185
|
+
|
186
|
+
chat_inputs = None
|
187
|
+
in_args = None
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/litellm/completion_chunk_converters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/openai/completion_chunk_converters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{grasp_agents-0.5.2 → grasp_agents-0.5.3}/src/grasp_agents/rate_limiting/rate_limiter_chunked.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|