Skip to content

Commit 49cc7f3

Browse files
authored
fix: replace the directly passed session_token with the one from creds (#41)
2 parents 46b5a30 + 7fca2f2 commit 49cc7f3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

agentkit/client/base_service_client.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,15 @@ def __init__(
110110

111111
self.access_key = creds.access_key
112112
self.secret_key = creds.secret_key
113-
self.region = ep.region
114-
self.session_token = session_token
115-
self.service_name = service_name
113+
self.session_token = creds.session_token
116114

117115
self.host = ep.host
118-
self.api_version = ep.api_version
116+
self.region = ep.region
119117
self.service = ep.service
120118
self.scheme = ep.scheme
119+
self.api_version = ep.api_version
120+
121+
self.service_name = service_name
121122

122123
if header is None:
123124
effective_header: Dict[str, Any] = {"Accept": "application/json"}
@@ -136,7 +137,7 @@ def __init__(
136137
sk=self.secret_key,
137138
service=self.service,
138139
region=self.region,
139-
session_token=self.session_token,
140+
session_token=self.session_token or "",
140141
),
141142
connection_timeout=30,
142143
socket_timeout=30,

agentkit/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = "0.3.0"
15+
VERSION = "0.3.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentkit-sdk-python"
3-
version = "0.3.0"
3+
version = "0.3.2"
44
description = "Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with volcengine-managed infrastructure."
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)