@continum/sdk 0.0.4 → 0.0.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.
Files changed (2) hide show
  1. package/README.md +61 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Governed Execution Framework for LLM Applications
4
4
 
5
+ **Current Version**: 0.0.4
6
+
5
7
  ## Quick Start
6
8
 
7
9
  ### Installation
@@ -24,20 +26,77 @@ import { Continum } from '@continum/sdk';
24
26
  const continum = new Continum({
25
27
  continumKey: process.env.CONTINUM_KEY!,
26
28
  apiKeys: {
27
- openai: process.env.OPENAI_API_KEY
29
+ openai: process.env.OPENAI_API_KEY,
30
+ anthropic: process.env.ANTHROPIC_API_KEY,
31
+ gemini: process.env.GEMINI_API_KEY
28
32
  },
29
33
  defaultSandbox: 'pii_protection'
30
34
  });
31
35
 
32
- // Make LLM calls with automatic compliance
36
+ // OpenAI - use snake_case model names
33
37
  const response = await continum.llm.openai.gpt_4o.chat({
34
38
  messages: [{ role: 'user', content: 'Hello world' }]
35
39
  });
40
+
41
+ // Anthropic - use model family names (opus, sonnet, haiku)
42
+ const response2 = await continum.llm.anthropic.opus_4_6.chat({
43
+ messages: [{ role: 'user', content: 'Review this code' }]
44
+ });
45
+ // Also supports: sonnet_4_6, sonnet_4, haiku_4_5, haiku_3_5, sonnet_3_7
46
+ // Legacy format also works: claude_3_5_sonnet
47
+
48
+ // Gemini - use snake_case with underscores
49
+ const response3 = await continum.llm.gemini.gemini_2_5_pro.chat({
50
+ messages: [{ role: 'user', content: 'Summarize this' }]
51
+ });
52
+
36
53
  // ✅ Guardian checks for PII (pre-execution)
37
54
  // ✅ User gets response instantly
38
55
  // ✅ Shadow Audit runs in background (post-execution)
39
56
  ```
40
57
 
58
+ ## Model Name Format
59
+
60
+ The SDK uses snake_case model names that get automatically transformed to the correct API format:
61
+
62
+ ### Anthropic Models
63
+
64
+ ```typescript
65
+ // Recommended format - use model family names
66
+ continum.llm.anthropic.opus_4_6.chat() // → claude-opus-4-6
67
+ continum.llm.anthropic.sonnet_4_6.chat() // → claude-sonnet-4-6
68
+ continum.llm.anthropic.sonnet_4.chat() // → claude-sonnet-4-5
69
+ continum.llm.anthropic.haiku_4_5.chat() // → claude-haiku-4-5-20251001
70
+ continum.llm.anthropic.haiku_3_5.chat() // → claude-haiku-3-5-20241022
71
+ continum.llm.anthropic.sonnet_3_7.chat() // → claude-sonnet-3-7-20250219
72
+
73
+ // Legacy format also supported (v0.0.4+)
74
+ continum.llm.anthropic.claude_3_5_sonnet.chat() // → claude-3-5-sonnet-20241022
75
+
76
+ // Alias: claude and anthropic are interchangeable
77
+ continum.llm.claude.opus_4_6.chat() // Same as anthropic.opus_4_6
78
+ ```
79
+
80
+ ### OpenAI Models
81
+
82
+ ```typescript
83
+ continum.llm.openai.gpt_5.chat() // → gpt-5
84
+ continum.llm.openai.gpt_4o.chat() // → gpt-4o
85
+ continum.llm.openai.gpt_4_turbo.chat() // → gpt-4-turbo
86
+ continum.llm.openai.o3.chat() // → o3
87
+ continum.llm.openai.o3_mini.chat() // → o3-mini
88
+ continum.llm.openai.o1.chat() // → o1
89
+ ```
90
+
91
+ ### Gemini Models
92
+
93
+ ```typescript
94
+ continum.llm.gemini.gemini_2_5_pro.chat() // → gemini-2.5-pro
95
+ continum.llm.gemini.gemini_2_5_flash.chat() // → gemini-2.5-flash
96
+ continum.llm.gemini.gemini_2_0_flash.chat() // → gemini-2.0-flash
97
+ continum.llm.gemini.gemini_1_5_pro.chat() // → gemini-1.5-pro
98
+ ```
99
+
41
100
  ## Architecture
42
101
 
43
102
  ### Two-Tier Protection System
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continum/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Zero-latency compliance auditing for every LLM call in your application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",