You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also export `RESOLVEKIT_API_KEY` instead of writing it to `local.properties`.
21
21
22
-
For local publishing credentials, copy [`.env.example`](/Users/t0405/Developer/resolvekit-android-sdk/.env.example) to `.env` and fill in the values you need. Use a base64-encoded private key in `SIGNING_KEY_BASE64`. Keep `.env` local only.
22
+
For local publishing credentials, copy [.env.example](.env.example) to `.env` and fill in the values you need. Use a base64-encoded private key in `SIGNING_KEY_BASE64`. Keep `.env` local only.
**Type:**`URL` | **Required:** No | **Default:**`https://agent.example.com`
211
+
**Type:**`String` | **Required:** No | **Default:**`https://agent.example.com`
210
212
211
213
Base URL of the ResolveKit backend. Override only when self-hosting:
212
214
213
215
```kotlin
214
-
baseURL=URL("https://your-backend.example.com")
216
+
baseUrl="https://your-backend.example.com"
215
217
```
216
218
217
219
### `apiKeyProvider`
@@ -224,14 +226,14 @@ Called at the start of each session. Return `null` or an empty string to block c
224
226
apiKeyProvider = { SecureConfig.getApiKey() }
225
227
```
226
228
227
-
### `deviceIDProvider`
229
+
### `deviceIdProvider`
228
230
229
231
**Type:**`() -> String?` | **Required:** No | **Default:**`{ null }`
230
232
231
233
Stable device or user identifier used to correlate sessions across app launches. If `null` is returned, the SDK generates and persists a UUID automatically.
232
234
233
235
```kotlin
234
-
deviceIDProvider= {
236
+
deviceIdProvider= {
235
237
val prefs =PreferenceManager.getDefaultSharedPreferences(context)
236
238
prefs.getString("device_id", null) ?:run {
237
239
val id =UUID.randomUUID().toString()
@@ -268,20 +270,29 @@ List of tool functions available to the agent.
268
270
|`messages`|`StateFlow<List<ResolveKitChatMessage>>`| Chat transcript in chronological order |
269
271
|`connectionState`|`StateFlow<ResolveKitConnectionState>`| Current session-stream connection phase |
270
272
|`isTurnInProgress`|`StateFlow<Boolean>`| True while the agent is processing a turn |
271
-
|`pendingToolCall`|`StateFlow<ResolveKitPendingToolCall?>`| Current active tool call awaiting approval |
272
273
|`toolCallChecklist`|`StateFlow<List<ToolCallChecklistItem>>`| Live checklist of tool calls in current batch |
273
274
|`toolCallBatchState`|`StateFlow<ResolveKitToolCallBatchState>`| Aggregate approval state of current batch |
0 commit comments