keyring-agent-core 0.3.13 → 0.3.15
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 -6
- package/dist/index.d.ts +852 -719
- package/dist/index.js +69 -69
- package/dist/index.native.js +170 -170
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ class FaqTool extends BaseTool {
|
|
|
65
65
|
const agent = new AgentCore({
|
|
66
66
|
llm: {
|
|
67
67
|
apiKey: process.env.GEMINI_API_KEY!,
|
|
68
|
-
model: 'gemini-2.5-flash
|
|
68
|
+
model: 'gemini-2.5-flash',
|
|
69
69
|
},
|
|
70
70
|
maxIterations: 8,
|
|
71
71
|
maxHistoryMessages: 40,
|
|
@@ -150,7 +150,7 @@ agent.restoreHistory(saved);
|
|
|
150
150
|
secretKey?: string; // required unless llm.apiKey is set
|
|
151
151
|
llm: {
|
|
152
152
|
apiKey?: string; // your own Gemini key → calls Google directly
|
|
153
|
-
model?: string; // default: 'gemini-2.5-flash
|
|
153
|
+
model?: string; // default: 'gemini-2.5-flash'
|
|
154
154
|
maxTokens?: number; // default: 4096
|
|
155
155
|
temperature?: number; // default: 0.7
|
|
156
156
|
baseUrl?: string; // override the endpoint
|
|
@@ -164,10 +164,10 @@ agent.restoreHistory(saved);
|
|
|
164
164
|
|
|
165
165
|
### LLM access: two modes
|
|
166
166
|
|
|
167
|
-
| Mode
|
|
168
|
-
|
|
|
169
|
-
| **Bring your own key** | `llm.apiKey` set | `https://generativelanguage.googleapis.com` — called directly with your key. `secretKey` is not required.
|
|
170
|
-
| **Keyring proxy**
|
|
167
|
+
| Mode | Config | Endpoint |
|
|
168
|
+
| ---------------------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
169
|
+
| **Bring your own key** | `llm.apiKey` set | `https://generativelanguage.googleapis.com` — called directly with your key. `secretKey` is not required. |
|
|
170
|
+
| **Keyring proxy** | no `llm.apiKey` | `https://nft.keyring.app/api/gemini-stable` — we authenticate for you. Requires a valid `secretKey`; the first `chat()` throws otherwise. |
|
|
171
171
|
|
|
172
172
|
`llm.baseUrl` overrides the endpoint in either mode.
|
|
173
173
|
|