Skip to content

Commit

Permalink
Merge pull request #30 from mainframecomputer/patch/initial_response
Browse files Browse the repository at this point in the history
patch initial_response handling in task.py
  • Loading branch information
philippe-page authored Jan 22, 2025
2 parents 539603b + 9b9123c commit c4cfe76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mainframe-orchestra"
version = "0.0.15"
version = "0.0.16"
description = "Mainframe-Orchestra is a lightweight, open-source agentic framework for building LLM based pipelines and self-orchestrating multi-agent teams"
authors = [
"Mainframe Computer Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/python/src/mainframe_orchestra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
# Copyright 2024 Mainframe-Orchestra Contributors. Licensed under Apache License 2.0.

__version__ = "0.0.15"
__version__ = "0.0.16"

from .task import Task, configure_logging, LogColors, default_logger
from .agent import Agent
Expand Down
2 changes: 2 additions & 0 deletions packages/python/src/mainframe_orchestra/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ async def callback_wrapper(event):
# Consume the stream
async for chunk in initial_stream:
pass # The callback will handle the chunks
else:
await self._direct_llm_call(callback)
finally:
self.require_json_output = original_json_requirement
self.messages = original_messages
Expand Down

0 comments on commit c4cfe76

Please sign in to comment.