Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.11.0"
".": "0.12.0"
}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 0.12.0 (2026-05-08)

Full Changelog: [v0.11.0...v0.12.0](https://github.com/scaleapi/scale-agentex-python/compare/v0.11.0...v0.12.0)

### ⚠ BREAKING CHANGES

* remove AgentexTracingProcessor from default tracing processors ([#349](https://github.com/scaleapi/scale-agentex-python/issues/349))

### Features

* remove AgentexTracingProcessor from default tracing processors ([#349](https://github.com/scaleapi/scale-agentex-python/issues/349)) ([73eca7a](https://github.com/scaleapi/scale-agentex-python/commit/73eca7ad620a7e0a8bd0180b9dee02a7dde12dbb))


### Bug Fixes

* **client:** add missing f-string prefix in file type error message ([dcb1cb4](https://github.com/scaleapi/scale-agentex-python/commit/dcb1cb489bc565828c16c327c5ab6b678b13c0fa))
* render .env.example template in agentex init ([#351](https://github.com/scaleapi/scale-agentex-python/issues/351)) ([6092595](https://github.com/scaleapi/scale-agentex-python/commit/6092595fa8a267b2c305baba09e2682c04d593b3))
* wire SGP_CLIENT_BASE_URL and silence openai-agents tracer in templates ([#352](https://github.com/scaleapi/scale-agentex-python/issues/352)) ([870324e](https://github.com/scaleapi/scale-agentex-python/commit/870324e7bb87cefc20a79dc344d8603a836ca9b5))

## 0.11.0 (2026-05-07)

Full Changelog: [v0.10.5...v0.11.0](https://github.com/scaleapi/scale-agentex-python/compare/v0.10.5...v0.11.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "agentex-sdk"
version = "0.11.0"
version = "0.12.0"
description = "The official Python library for the agentex API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/agentex/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def async_to_httpx_files(files: RequestFiles | None) -> HttpxRequestFiles
elif is_sequence_t(files):
files = [(key, await _async_transform_file(file)) for key, file in files]
else:
raise TypeError("Unexpected file type input {type(files)}, expected mapping or sequence")
raise TypeError(f"Unexpected file type input {type(files)}, expected mapping or sequence")

return files

Expand Down
2 changes: 1 addition & 1 deletion src/agentex/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "agentex"
__version__ = "0.11.0" # x-release-please-version
__version__ = "0.12.0" # x-release-please-version
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
1 change: 1 addition & 0 deletions src/agentex/lib/cli/templates/default/.env.example.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ from agentex.types.task_message_update import TaskMessageUpdate, StreamTaskMessa
from agentex.types.task_message_content import TaskMessageContent
from agentex.types.text_content import TextContent
from agentex.lib.utils.logging import make_logger
from agents import Agent, Runner, RunConfig, function_tool
from agents import Agent, Runner, RunConfig, function_tool, set_tracing_disabled

# Disable the openai-agents SDK's native tracer so it doesn't ship traces to
# api.openai.com using OPENAI_API_KEY (which may be a LiteLLM proxy key).
# SGP tracing below still runs via the Agentex tracing manager.
set_tracing_disabled(True)


logger = make_logger(__name__)
Expand All @@ -25,12 +30,14 @@ if _litellm_key:

SGP_API_KEY = os.environ.get("SGP_API_KEY", "")
SGP_ACCOUNT_ID = os.environ.get("SGP_ACCOUNT_ID", "")
SGP_CLIENT_BASE_URL = os.environ.get("SGP_CLIENT_BASE_URL", "")

if SGP_API_KEY and SGP_ACCOUNT_ID:
add_tracing_processor_config(
SGPTracingProcessorConfig(
sgp_api_key=SGP_API_KEY,
sgp_account_id=SGP_ACCOUNT_ID,
sgp_base_url=SGP_CLIENT_BASE_URL,
)
)

Expand Down
1 change: 1 addition & 0 deletions src/agentex/lib/cli/templates/sync/.env.example.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ from agentex.lib.core.temporal.types.workflow import SignalName
from agentex.lib.utils.logging import make_logger
from agentex.types.text_content import TextContent
from agentex.lib.environment_variables import EnvironmentVariables
from agents import Agent, Runner
from agents import Agent, Runner, set_tracing_disabled

# Disable the openai-agents SDK's native tracer so it doesn't ship traces to
# api.openai.com using OPENAI_API_KEY (which may be a LiteLLM proxy key).
# SGP tracing below still runs via the Agentex tracing manager.
set_tracing_disabled(True)

from agentex.lib.core.temporal.plugins.openai_agents.hooks.hooks import TemporalStreamingHooks
from pydantic import BaseModel
from typing import List, Dict, Any
Expand Down Expand Up @@ -39,6 +45,7 @@ add_tracing_processor_config(
SGPTracingProcessorConfig(
sgp_api_key=os.environ.get("SGP_API_KEY", ""),
sgp_account_id=os.environ.get("SGP_ACCOUNT_ID", ""),
sgp_base_url=os.environ.get("SGP_CLIENT_BASE_URL", ""),
)
)

Expand Down
1 change: 1 addition & 0 deletions src/agentex/lib/cli/templates/temporal/.env.example.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ LITELLM_API_KEY=
# SGP Configuration (optional - for tracing)
# SGP_API_KEY=
# SGP_ACCOUNT_ID=
# SGP_CLIENT_BASE_URL=
16 changes: 1 addition & 15 deletions src/agentex/lib/core/tracing/tracing_processor_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import TYPE_CHECKING
from threading import Lock

from agentex.lib.types.tracing import TracingProcessorConfig, AgentexTracingProcessorConfig
from agentex.lib.types.tracing import TracingProcessorConfig
from agentex.lib.core.tracing.processors.sgp_tracing_processor import (
SGPSyncTracingProcessor,
SGPAsyncTracingProcessor,
Expand Down Expand Up @@ -73,22 +73,8 @@ def get_async_processors(self) -> list[AsyncTracingProcessor]:
add_tracing_processor_config = GLOBAL_TRACING_PROCESSOR_MANAGER.add_processor_config
set_tracing_processor_configs = GLOBAL_TRACING_PROCESSOR_MANAGER.set_processor_configs

# Lazy initialization to avoid circular imports
_default_initialized = False

def _ensure_default_initialized():
"""Ensure default processor is initialized (lazy to avoid circular imports)."""
global _default_initialized
if not _default_initialized:
add_tracing_processor_config(AgentexTracingProcessorConfig())
_default_initialized = True

def get_sync_tracing_processors():
"""Get sync processors, initializing defaults if needed."""
_ensure_default_initialized()
return GLOBAL_TRACING_PROCESSOR_MANAGER.get_sync_processors()

def get_async_tracing_processors():
"""Get async processors, initializing defaults if needed."""
_ensure_default_initialized()
return GLOBAL_TRACING_PROCESSOR_MANAGER.get_async_processors()
Loading