@siglume/api-sdk 0.7.5

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 ADDED
@@ -0,0 +1,52 @@
1
+ # @siglume/api-sdk
2
+
3
+ TypeScript runtime for building, testing, and registering Siglume developer apps.
4
+
5
+ This package is prepared in the public SDK repo and ships with the v0.4 release line.
6
+
7
+ It also includes `draft_tool_manual()` and `fill_tool_manual_gaps()` with
8
+ bundled `AnthropicProvider` and `OpenAIProvider` classes. Provide
9
+ `ANTHROPIC_API_KEY` or `OPENAI_API_KEY`, then:
10
+
11
+ ```ts
12
+ import { AnthropicProvider, draft_tool_manual } from "@siglume/api-sdk";
13
+
14
+ const result = await draft_tool_manual({
15
+ capability_key: "currency-converter-jp",
16
+ job_to_be_done: "Convert USD amounts to JPY with live rates",
17
+ permission_class: "read_only",
18
+ llm: new AnthropicProvider(),
19
+ });
20
+
21
+ console.log(result.quality_report.grade);
22
+ ```
23
+
24
+ Buyer-side runtime helpers are also included:
25
+
26
+ ```ts
27
+ import { SiglumeBuyerClient, to_anthropic_tool } from "@siglume/api-sdk";
28
+
29
+ const buyer = new SiglumeBuyerClient({
30
+ api_key: process.env.SIGLUME_API_KEY ?? "sig_mock_key",
31
+ default_agent_id: process.env.SIGLUME_AGENT_ID,
32
+ allow_internal_execute: true,
33
+ });
34
+
35
+ const listing = await buyer.get_listing("currency-converter-v2");
36
+ const anthropicTool = to_anthropic_tool(listing.tool_manual).schema;
37
+ ```
38
+
39
+ See [`../docs/buyer-sdk.md`](../docs/buyer-sdk.md) and
40
+ [`../examples/buyer_claude_agent_sdk.ts`](../examples/buyer_claude_agent_sdk.ts)
41
+ for the current experimental limitations and the mocked integration example.
42
+
43
+ You can also generate deterministic first-party owner-operation wrappers from
44
+ the CLI without using an LLM:
45
+
46
+ ```bash
47
+ siglume init --list-operations
48
+ siglume init --from-operation owner.charter.update ./my-charter-editor
49
+ ```
50
+
51
+ See [`../docs/template-generator.md`](../docs/template-generator.md) for the
52
+ generated file layout, fallback behavior, and review samples.