From 5ff5956bc8724aa3dae92db5c4fdf792a0f5db59 Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 25 Nov 2024 17:12:04 +0100 Subject: [PATCH] refactor (cli:sdk): set tree attribute to be None if not provided in inline_traces and bump pre-release version --- agenta-cli/agenta/sdk/decorators/routing.py | 2 +- agenta-cli/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-cli/agenta/sdk/decorators/routing.py b/agenta-cli/agenta/sdk/decorators/routing.py index 73d05a8571..4b331d4e08 100644 --- a/agenta-cli/agenta/sdk/decorators/routing.py +++ b/agenta-cli/agenta/sdk/decorators/routing.py @@ -373,7 +373,7 @@ async def execute_function( async def handle_success(self, result: Any, inline_trace: bool): data = None - trace = dict() + trace = None with suppress(): data = self.patch_result(result) diff --git a/agenta-cli/pyproject.toml b/agenta-cli/pyproject.toml index fd116463ca..5969e0edd5 100644 --- a/agenta-cli/pyproject.toml +++ b/agenta-cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "agenta" -version = "0.27.6" +version = "0.27.8a2" description = "The SDK for agenta is an open-source LLMOps platform." readme = "README.md" authors = ["Mahmoud Mabrouk "]