stratus-sdk 0.7.0 → 0.7.2
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.
- package/README.md +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
[](https://www.npmjs.com/package/stratus-sdk)
|
|
14
14
|
[](https://github.com/tylergibbs1/stratus/actions/workflows/ci.yml)
|
|
15
15
|
|
|
16
|
-
A TypeScript agent
|
|
16
|
+
A better TypeScript agent SDK for Azure OpenAI. Build multi-agent systems with tools, handoffs, guardrails, streaming, structured output, and more.
|
|
17
|
+
|
|
18
|
+
- **One framework, two swappable backends** — `AzureChatCompletionsModel` and `AzureResponsesModel` implement the same `Model` interface. Switch with one line, zero agent code changes.
|
|
19
|
+
- **No more 404 config spiral** — explicit `deployment` param, auto-endpoint detection for standard/foundry/full URLs, built-in retry with exponential backoff, and a unified `ContentFilterError` so Azure's inconsistent error shapes don't break your agent loop.
|
|
17
20
|
|
|
18
21
|
`agents` `tools` `streaming` `structured output` `handoffs` `subagents` `guardrails` `hooks` `tracing` `sessions` `abort signals` `todo tracking` `cost tracking`
|
|
19
22
|
|
|
@@ -33,9 +36,9 @@ bun add zod
|
|
|
33
36
|
|
|
34
37
|
```ts
|
|
35
38
|
import { z } from "zod";
|
|
36
|
-
import { Agent,
|
|
39
|
+
import { Agent, AzureResponsesModel, run, tool } from "stratus-sdk";
|
|
37
40
|
|
|
38
|
-
const model = new
|
|
41
|
+
const model = new AzureResponsesModel({
|
|
39
42
|
endpoint: process.env.AZURE_OPENAI_ENDPOINT!,
|
|
40
43
|
apiKey: process.env.AZURE_OPENAI_API_KEY!,
|
|
41
44
|
deployment: "gpt-5.2",
|