agentos-sdk-python 1.0.0__tar.gz → 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. agentos_sdk_python-1.1.1/CHANGELOG.md +113 -0
  2. agentos_sdk_python-1.1.1/PKG-INFO +810 -0
  3. agentos_sdk_python-1.1.1/README-zh_CN.md +743 -0
  4. agentos_sdk_python-1.1.1/README.md +776 -0
  5. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/RELEASE.md +7 -8
  6. agentos_sdk_python-1.1.1/agentos_sdk/__init__.py +153 -0
  7. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/__init__.py +4 -0
  8. agentos_sdk_python-1.1.1/agentos_sdk/clients/harnesskit.py +402 -0
  9. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/modelkit.py +111 -1
  10. agentos_sdk_python-1.1.1/agentos_sdk/clients/notifykit.py +47 -0
  11. agentos_sdk_python-1.1.1/agentos_sdk/normalizers.py +219 -0
  12. agentos_sdk_python-1.1.1/agentos_sdk/protocol.py +699 -0
  13. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/sdk.py +273 -0
  14. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/transport.py +8 -2
  15. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/pyproject.toml +2 -2
  16. agentos_sdk_python-1.1.1/tests/test_harnesskit.py +1033 -0
  17. agentos_sdk_python-1.1.1/tests/test_modelkit.py +518 -0
  18. agentos_sdk_python-1.1.1/tests/test_normalizers.py +276 -0
  19. agentos_sdk_python-1.1.1/tests/test_notifykit.py +224 -0
  20. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_sdk_facade.py +88 -0
  21. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_transport.py +28 -0
  22. agentos_sdk_python-1.1.1/tests/typecheck/harnesskit_usage.py +126 -0
  23. agentos_sdk_python-1.1.1/tests/typecheck/modelkit_usage.py +94 -0
  24. agentos_sdk_python-1.1.1/tests/typecheck/notifykit_usage.py +54 -0
  25. agentos_sdk_python-1.0.0/CHANGELOG.md +0 -35
  26. agentos_sdk_python-1.0.0/PKG-INFO +0 -441
  27. agentos_sdk_python-1.0.0/README-zh_CN.md +0 -403
  28. agentos_sdk_python-1.0.0/README.md +0 -407
  29. agentos_sdk_python-1.0.0/agentos_sdk/__init__.py +0 -67
  30. agentos_sdk_python-1.0.0/agentos_sdk/normalizers.py +0 -130
  31. agentos_sdk_python-1.0.0/agentos_sdk/protocol.py +0 -239
  32. agentos_sdk_python-1.0.0/tests/test_modelkit.py +0 -79
  33. agentos_sdk_python-1.0.0/tests/test_normalizers.py +0 -118
  34. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/.gitignore +0 -0
  35. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/LICENSE +0 -0
  36. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/agentkit.py +0 -0
  37. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/appkit.py +0 -0
  38. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/authkit.py +0 -0
  39. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/cronkit.py +0 -0
  40. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/discoverykit.py +0 -0
  41. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/systemkit.py +0 -0
  42. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/toolkit.py +0 -0
  43. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/clients/transferkit.py +0 -0
  44. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/handlers.py +0 -0
  45. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/agentos_sdk/py.typed +0 -0
  46. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_agentkit.py +0 -0
  47. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_cronkit.py +0 -0
  48. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_protocol.py +0 -0
  49. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/test_toolkit.py +0 -0
  50. {agentos_sdk_python-1.0.0 → agentos_sdk_python-1.1.1}/tests/typecheck/toolkit_usage.py +0 -0
@@ -0,0 +1,113 @@
1
+ # Changelog
2
+
3
+ ## 1.1.1
4
+
5
+ - Added HarnessKit private App tool registration with `register_private_tools`
6
+ and `registerPrivateTools` on both the authenticated facade and explicit-token
7
+ client. Added registration, result and tool policy type declarations.
8
+ - Preserve the current AppKit token when HarnessKit returns
9
+ `harness_host_access_forbidden` for a restricted action.
10
+ - Added `billingType` (`ModelBillingType`: `"free"`, `"plan"` or `"payAsYouGo"`) to
11
+ model info for system models that are not benefit card models. It is omitted for
12
+ benefit card, local, custom and app models, and on gateways that predate the
13
+ field; blank and unknown values are dropped. Pickers can mark each type with a
14
+ badge.
15
+ - Added `isBenefitCard`, `benefitCardId` and `benefitCardName` to model info for
16
+ the models a benefit card serves. A card model keeps `source` `"platform"` and
17
+ its plain `name` / `alias`; the same model can be listed once for the plan and
18
+ once per card, and only `id` and the card fields tell them apart. Group card
19
+ models one group per card (for example `Remote · System · {benefitCardName}`,
20
+ falling back to `benefitCardId`). The fields are omitted for other models and
21
+ on gateways that predate them; blank values are dropped.
22
+ - Added `maxOutputTokens` (the maximum number of tokens a model can generate in
23
+ one response, the platform's `maxTokens`) to model info and app model
24
+ records/requests, next to `contextWindowSize`. It is omitted when the gateway
25
+ does not report it; the `AppModel*` type declarations include it.
26
+ - Model info now reports `source` (`ModelSource`: `"local"` / `"platform"` /
27
+ `"custom"` / `"app"`), the gateway's mutually exclusive model origin, and
28
+ `appName` for app models. Group and label models by `source` (for example
29
+ `App · {appName}`) instead of combining `isRemote` / `isCustom` /
30
+ `isAppModel`. `source` is always present: it is derived from those flags with
31
+ the gateway's rules when the gateway predates `source` or reports an unknown
32
+ value. `appName` is only present when the gateway reports a non-blank one.
33
+ The `ModelSource` type declaration was added.
34
+ - **Breaking:** The gateway generates app model IDs. `AppModelRegistration` takes
35
+ no `id`; the gateway derives a 12-character hashid from the app's bundle ID and
36
+ the model `name` and returns it as `AppModelWriteResult["id"]`. Store it: it is the
37
+ `model_id` of `update_app_model` / `unregister_app_model` /
38
+ `toggle_app_model` (looked up only among the calling app's models, otherwise
39
+ `404`) and the `model` of requests. `AppModel["id"]` and the model `id` in
40
+ `list_models()` report the same value. A model's `name` is unique within its
41
+ app: registering an existing `name` replaces that model and keeps its id
42
+ (`updated` is true), and renaming through `update_app_model` keeps the id.
43
+ `409` means the id derived from `name` is still held by a renamed model of the
44
+ same app, or `update_app_model` renames a model to a `name` another model of
45
+ the app already uses.
46
+
47
+ ## 1.1.0
48
+
49
+ - Added HarnessKit support for the authenticated `/harnesskit/*` Gateway routes:
50
+ `sdk.harnesskit` (with `health`, `get_runtime`, `switch_engine`,
51
+ `list_threads`, `get_thread`, `rename_thread`, `delete_thread`, `start_run`,
52
+ `submit_command`, `events`, `get_run_result`, `get_operational_snapshot`,
53
+ `request` and `request_stream`, plus camelCase aliases) and the explicit-token
54
+ `HarnessKitClient` (`sdk.harnessKit`). Calls use the app token from
55
+ `register_bundle` and refresh it once on `401`/`403`. `events()` is a
56
+ resumable SSE stream (`after_sequence`, `run_id`) that releases its connection
57
+ when finished or closed. Rejected commands (HTTP `400` with a receipt body) are
58
+ returned as receipts. Thread/run IDs and `request()` paths are validated so
59
+ they cannot escape the Harness API root. The `HarnessKit*` type declarations
60
+ were added.
61
+ - Added NotifyKit support: `sdk.notifykit.publish(request=...)` and the
62
+ explicit-token `NotifyKitClient` (`sdk.notifyKit`) for
63
+ `POST /notifykit/notifications`, with `NotifyKitEvent`, `NotifyKitNotification`,
64
+ `NotifyKitPublishResult` and `NotifyKitLevel` type declarations. Invalid events
65
+ and rate limits (`retryAfterSeconds`) surface as `ApiError`.
66
+ - Fixed a query string already present in a request path being dropped when no
67
+ `query` argument was given.
68
+ - Added ModelKit decision inference: task `"decision"`, modality `"decisions"`
69
+ and `sdk.modelkit.decision.create(...)` (`POST /modelkit/decision`), plus the
70
+ `DecisionRequest`, `DecisionQuestion`, `DecisionResponse`, `DecisionAnswer` and
71
+ `DecisionUsage` type declarations.
72
+ - Added app model registration: `list_app_models`, `register_app_model`,
73
+ `update_app_model`, `unregister_app_model` and `toggle_app_model` for
74
+ `/modelkit/app-models` (with camelCase aliases). Write calls reuse the app token
75
+ from `register_bundle` and refresh it once on `401`. `ModelKitClient` exposes
76
+ the same methods with an explicit `bearer_token` argument.
77
+ - Model info now reports `isAppModel` and `appBundleId` for models registered
78
+ by apps, and `AppModel*` type declarations were added.
79
+ - Fixed models with `decisions` output being reported as `text` output.
80
+
81
+ ## 1.0.0 - 2026-09-01
82
+
83
+ - Updated AgentKit for the LiteAgent SDK 0.4 gateway contract.
84
+ - Added support and coverage for recursively nested inline agents through
85
+ `Capability.subAgentList`.
86
+ - **Breaking:** Removed the AgentKit agent CRUD methods because the corresponding
87
+ gateway routes no longer exist.
88
+ - **Breaking:** `init_session` now requires a Capability request body and no
89
+ longer accepts the removed `agent_id` argument.
90
+ - Removed the obsolete `agentId` field from AgentKit message type declarations.
91
+
92
+ ## 0.2.0 - 2026-07-17
93
+
94
+ - **Breaking:** Updated OpenTool server identities to daemon 0.5
95
+ `namespace` / `name` / `version` fields.
96
+ - Added public `ToolContentState` and `ToolLifecycleEventDto` types.
97
+ - Added `materializedArtifactDigest` and `contentState` ToolKit metadata.
98
+ - Added OpenTool server declarations, registration statuses, and AppKit provisioning/availability events.
99
+ - Added paginated AgentKit history, summary history, and process history APIs.
100
+ - Added child-session routing and structured function-call lifecycle errors.
101
+ - Added ToolKit server metadata types and hardened SSE parsing.
102
+ - Added automatic app registration Bearer authentication to ToolKit list and load requests.
103
+ - Added one-time app token refresh and retry for ToolKit requests that return 401 or 403.
104
+ - Added `sdk.toolkit.call()` for non-streaming tool function calls.
105
+ - Added `sdk.toolkit.stream_call()` / `streamCall()` with typed stream events and safe
106
+ response closure after normal completion, errors, cancellation, or explicit early close.
107
+ - **Breaking:** Replaced `AgentOSEventHandler.on_call_app` / `onCallApp` with `on_app_event` / `onAppEvent`.
108
+
109
+ ## 0.1.0 - 2026-06-12
110
+
111
+ - Initial public release of the AgentOS Python SDK.
112
+ - Added async clients for AgentOS, AgentKit, CronKit, ModelKit, and ToolKit APIs.
113
+ - Added facade helpers for bearer token reuse, token refresh retry, stream callbacks, and TS-style alias compatibility.