Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1ebea83
feat(destination, agent-memory, core): add support to binding rotatio…
cassiofariasmachado Aug 27, 2026
b85c7cb
refactor: update HTTP client methods to use HttpMethod enum for bette…
cassiofariasmachado Aug 27, 2026
7b3e073
style: apply ruff formatting
cassiofariasmachado Aug 27, 2026
658a2c9
refactor: address code review feedbacks
cassiofariasmachado Aug 28, 2026
3874260
Merge remote-tracking branch 'origin/main' into refactor/support-bind…
cassiofariasmachado Aug 28, 2026
8423d4c
refactor: improve session invalidation and enhance watch path resolution
cassiofariasmachado Aug 28, 2026
78bea47
fix: resolve deadlock and stale base_url after binding rotation
cassiofariasmachado Aug 28, 2026
417ceac
Merge remote-tracking branch 'origin/main' into refactor/support-bind…
cassiofariasmachado Sep 3, 2026
852ab79
chore: update version to 0.51.0
cassiofariasmachado Sep 3, 2026
8e7abb9
feat(core): add logging for token cache invalidation
cassiofariasmachado Sep 3, 2026
5c16898
Merge remote-tracking branch 'origin/main' into refactor/support-bind…
cassiofariasmachado Sep 8, 2026
700b3dd
chore: update version to 0.52.0
cassiofariasmachado Sep 8, 2026
32bf1cb
Merge remote-tracking branch 'origin/main' into refactor/support-bind…
cassiofariasmachado Sep 8, 2026
35d915f
refactor: address code review feedback
cassiofariasmachado Sep 9, 2026
00bc230
refactor: update mock destination instances to use Destination spec
cassiofariasmachado Sep 9, 2026
dc9e78e
refactor: improve destination URL handling in _get_config_from_destin…
cassiofariasmachado Sep 9, 2026
71a3773
refactor: address code review feedbacks
cassiofariasmachado Sep 9, 2026
be4125d
Merge remote-tracking branch 'origin/main' into refactor/support-bind…
cassiofariasmachado Sep 9, 2026
cc7ad7b
chore: update version to 0.53.0
cassiofariasmachado Sep 9, 2026
537475a
refactor: change log level from info to debug for token cache invalid…
cassiofariasmachado Sep 9, 2026
3dbcb31
refactor: formatting in user guide documentation
cassiofariasmachado Sep 9, 2026
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 pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sap-cloud-sdk"
version = "0.52.0"
version = "0.53.0"
description = "SAP Cloud SDK for Python"
readme = "README.md"
license = "Apache-2.0"
Expand Down
24 changes: 17 additions & 7 deletions src/sap_cloud_sdk/agent_memory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@

from typing import Optional

from sap_cloud_sdk.agent_memory._http_transport import HttpTransport
from sap_cloud_sdk.agent_memory.client import AgentMemoryClient
from sap_cloud_sdk.agent_memory.config import (
AgentMemoryConfig,
_load_config_from_env,
_make_config_factory,
)
from sap_cloud_sdk.agent_memory.exceptions import (
AgentMemoryConfigError,
Expand All @@ -39,6 +38,19 @@
SearchResult,
)
from sap_cloud_sdk.agent_memory.utils._odata import FilterDefinition
from sap_cloud_sdk.core.protocol.http import HttpClient, XsuaaAuthProvider


def _build_agent_memory_http(
instance: str, config: Optional[AgentMemoryConfig]
) -> HttpClient:
if config is not None:
auth = XsuaaAuthProvider(lambda: config) if config.token_url else None
return HttpClient(config.base_url, auth, timeout=config.timeout)
factory = _make_config_factory(instance)
cfg = factory()
auth = XsuaaAuthProvider(factory) if cfg.token_url else None
return HttpClient(cfg.base_url, auth, timeout=cfg.timeout)


def create_client(
Expand Down Expand Up @@ -76,13 +88,11 @@ def create_client(
"""
try:
if config is not None:
resolved_config = config
http = _build_agent_memory_http("default", config)
else:
resolved_config = _load_config_from_env()

transport = HttpTransport(resolved_config)
http = _build_agent_memory_http("default", None)
return AgentMemoryClient(
transport,
http,
access_strategy=access_strategy,
tenant=tenant,
)
Expand Down
267 changes: 0 additions & 267 deletions src/sap_cloud_sdk/agent_memory/_http_transport.py

This file was deleted.

Loading
Loading