From 5d7149007f587241b7b3326a20924c380dfdf084 Mon Sep 17 00:00:00 2001 From: Abram Date: Tue, 28 May 2024 09:52:53 +0100 Subject: [PATCH] Style: format code with black@23.12.0 --- agenta-cli/agenta/__init__.py | 2 +- agenta-cli/agenta/sdk/__init__.py | 2 +- agenta-cli/agenta/sdk/agenta_init.py | 2 +- agenta-cli/agenta/sdk/decorators/llm_entrypoint.py | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/agenta-cli/agenta/__init__.py b/agenta-cli/agenta/__init__.py index 037033c50e..7f5bcde7ab 100644 --- a/agenta-cli/agenta/__init__.py +++ b/agenta-cli/agenta/__init__.py @@ -22,4 +22,4 @@ config = PreInitObject("agenta.config", Config) DEFAULT_AGENTA_SINGLETON_INSTANCE = AgentaSingleton() -tracing = DEFAULT_AGENTA_SINGLETON_INSTANCE.tracing # type: ignore +tracing = DEFAULT_AGENTA_SINGLETON_INSTANCE.tracing # type: ignore diff --git a/agenta-cli/agenta/sdk/__init__.py b/agenta-cli/agenta/sdk/__init__.py index a604f595aa..d9d9c89e76 100644 --- a/agenta-cli/agenta/sdk/__init__.py +++ b/agenta-cli/agenta/sdk/__init__.py @@ -22,4 +22,4 @@ config = PreInitObject("agenta.config", Config) DEFAULT_AGENTA_SINGLETON_INSTANCE = AgentaSingleton() -tracing = DEFAULT_AGENTA_SINGLETON_INSTANCE.tracing # type: ignore +tracing = DEFAULT_AGENTA_SINGLETON_INSTANCE.tracing # type: ignore diff --git a/agenta-cli/agenta/sdk/agenta_init.py b/agenta-cli/agenta/sdk/agenta_init.py index b3ad94b32a..b80452a5e8 100644 --- a/agenta-cli/agenta/sdk/agenta_init.py +++ b/agenta-cli/agenta/sdk/agenta_init.py @@ -81,7 +81,7 @@ def init( self.base_id = base_id self.variant_id = os.environ.get("AGENTA_VARIANT_ID") self.variant_name = os.environ.get("AGENTA_VARIANT_NAME") - self.config = Config(base_id=self.base_id, host=self.host, api_key=self.api_key) # type: ignore + self.config = Config(base_id=self.base_id, host=self.host, api_key=self.api_key) # type: ignore def get_app_base(self, app_id: str, base_name: str) -> str: bases = self.client.bases.list_bases(app_id=app_id, base_name=base_name) diff --git a/agenta-cli/agenta/sdk/decorators/llm_entrypoint.py b/agenta-cli/agenta/sdk/decorators/llm_entrypoint.py index 87c5be3574..fab5661793 100644 --- a/agenta-cli/agenta/sdk/decorators/llm_entrypoint.py +++ b/agenta-cli/agenta/sdk/decorators/llm_entrypoint.py @@ -106,7 +106,6 @@ async def wrapper_deployed(*args, **kwargs) -> Any: else: agenta.config.pull(config_name="default") - # Set the configuration and environment of the LLM app parent span at run-time agenta.tracing.set_span_attribute( attributes={"config": config_params}, is_parent_span=True