From eefae35c40a48cad33a094110f10c37c72ba8725 Mon Sep 17 00:00:00 2001 From: Ashpreet Bedi Date: Mon, 21 Oct 2024 11:58:57 +0100 Subject: [PATCH] v2.5.9 --- cookbook/reasoning/strawberry.py | 2 +- phi/workspace/operator.py | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/cookbook/reasoning/strawberry.py b/cookbook/reasoning/strawberry.py index dc6db1acf..b6db7f4a5 100644 --- a/cookbook/reasoning/strawberry.py +++ b/cookbook/reasoning/strawberry.py @@ -16,7 +16,7 @@ async def main(): console.rule("[bold green]Regular Agent[/bold green]") await regular_agent.aprint_response(task, stream=True) console.rule("[bold yellow]Reasoning Agent[/bold yellow]") - await reasoning_agent.aprint_response(task, stream=True) + await reasoning_agent.aprint_response(task, stream=True, show_full_reasoning=True) asyncio.run(main()) diff --git a/phi/workspace/operator.py b/phi/workspace/operator.py index 8f4164892..d1cab37ac 100644 --- a/phi/workspace/operator.py +++ b/phi/workspace/operator.py @@ -312,21 +312,21 @@ def setup_workspace(ws_root_path: Path, team: Optional[str] = None) -> bool: print_info(f"Creating workspace in {selected_team.name}") team_identifier = TeamIdentifier(id_team=selected_team.id_team, team_url=selected_team.url) - ws_schema = create_workspace_for_user( - user=phi_config.user, - workspace=WorkspaceCreate( - ws_name=new_workspace_name, - git_url=git_remote_origin_url, - ), - team=team_identifier, + ws_schema = create_workspace_for_user( + user=phi_config.user, + workspace=WorkspaceCreate( + ws_name=new_workspace_name, + git_url=git_remote_origin_url, + ), + team=team_identifier, + ) + if ws_schema is not None: + logger.debug(f"Workspace created: {ws_schema.ws_name}") + if selected_team is not None: + logger.debug(f"Selected team: {selected_team.name}") + ws_config = phi_config.update_ws_config( + ws_root_path=ws_root_path, ws_schema=ws_schema, ws_team=selected_team, set_as_active=True ) - if ws_schema is not None: - logger.debug(f"Workspace created: {ws_schema.ws_name}") - if selected_team is not None: - logger.debug(f"Selected team: {selected_team.name}") - ws_config = phi_config.update_ws_config( - ws_root_path=ws_root_path, ws_schema=ws_schema, ws_team=selected_team, set_as_active=True - ) ###################################################### # 2.2 Update WorkspaceSchema if git_url is updated