@scalar/agent 0.1.6 → 0.1.8

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 (3) hide show
  1. package/README.md +6 -4
  2. package/dist/index.js +39 -120750
  3. package/package.json +9 -1
package/README.md CHANGED
@@ -23,7 +23,6 @@ import { agentScalar } from '@scalar/agent'
23
23
 
24
24
  const scalar = agentScalar({
25
25
  agentKey: 'your-agent-key',
26
- baseUrl: 'https://services.scalar.com',
27
26
  })
28
27
 
29
28
  const session = await scalar.session({
@@ -31,6 +30,12 @@ const session = await scalar.session({
31
30
  })
32
31
  ```
33
32
 
33
+ # Agent Key
34
+
35
+ An agent key allows access to private APIs as well as a default set of APIs if configured for a key. [Learn more about agent keys](https://scalar.com/products/agent/key).
36
+
37
+ Agent keys also identify your team for billing and analytics.
38
+
34
39
  ## Providers
35
40
 
36
41
  ### Vercel AI SDK
@@ -43,7 +48,6 @@ import { openai } from '@ai-sdk/openai'
43
48
 
44
49
  const scalar = agentScalar({
45
50
  agentKey: 'your-agent-key',
46
- baseUrl: 'https://services.scalar.com',
47
51
  })
48
52
 
49
53
  const session = await scalar.session({
@@ -68,7 +72,6 @@ import { Agent, MCPServerStreamableHttp, run } from '@openai/agents'
68
72
 
69
73
  const scalar = agentScalar({
70
74
  agentKey: 'your-agent-key',
71
- baseUrl: 'https://services.scalar.com',
72
75
  })
73
76
 
74
77
  const session = await scalar.session({
@@ -102,7 +105,6 @@ import Anthropic from '@anthropic-ai/sdk'
102
105
 
103
106
  const scalar = agentScalar({
104
107
  agentKey: 'your-agent-key',
105
- baseUrl: 'https://services.scalar.com',
106
108
  })
107
109
 
108
110
  const session = await scalar.session({