agents-chain 0.0.1 → 0.0.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 +31 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ import Anthropic from '@anthropic-ai/sdk';
|
|
|
56
56
|
const chain = await AgentsChain.create({
|
|
57
57
|
agentName: 'classifier',
|
|
58
58
|
hostname: 'my-app',
|
|
59
|
-
capabilities: ['
|
|
59
|
+
capabilities: ['message'],
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
const ai = chain.anthropic(new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY }));
|
|
@@ -117,6 +117,36 @@ Each `AuditEntry` contains:
|
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
120
|
+
## Capability names
|
|
121
|
+
|
|
122
|
+
`agents-chain` maps SDK method paths to short capability strings. You must use these exact strings in the `capabilities` array when calling `AgentsChain.create()` — otherwise the call will be blocked with a `ChainAuthError`.
|
|
123
|
+
|
|
124
|
+
### OpenAI
|
|
125
|
+
|
|
126
|
+
| SDK method | Capability string |
|
|
127
|
+
|---|---|
|
|
128
|
+
| `ai.chat.completions.create()` | `"chat.completion"` |
|
|
129
|
+
| `ai.embeddings.create()` | `"embedding"` |
|
|
130
|
+
| `ai.images.generate()` | `"image.generation"` |
|
|
131
|
+
| `ai.audio.transcriptions.create()` | `"audio.transcription"` |
|
|
132
|
+
| `ai.audio.speech.create()` | `"audio.speech"` |
|
|
133
|
+
| `ai.moderations.create()` | `"moderation"` |
|
|
134
|
+
| `ai.responses.create()` | `"response"` |
|
|
135
|
+
|
|
136
|
+
### Anthropic
|
|
137
|
+
|
|
138
|
+
| SDK method | Capability string |
|
|
139
|
+
|---|---|
|
|
140
|
+
| `ai.messages.create()` | `"message"` |
|
|
141
|
+
| `ai.messages.stream()` | `"message.stream"` |
|
|
142
|
+
| `ai.messages.countTokens()` | `"message.count_tokens"` |
|
|
143
|
+
| `ai.completions.create()` | `"completion"` |
|
|
144
|
+
| `ai.beta.messages.create()` | `"message.beta"` |
|
|
145
|
+
|
|
146
|
+
Any SDK method not in these tables passes through without interception.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
120
150
|
## Identity & crypto utilities
|
|
121
151
|
|
|
122
152
|
Low-level utilities are exported if you need direct access:
|