Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / sdk / openassistant / AGENTS.md

AGENTS.md1.8 KiBRenderedCodeRaw
1# AGENTS.md — sdk/openassistant/ (':sdk:openassistant')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/openassistant/` + allowed shared modules. Do not root-scan.
4
5- Gradle: :sdk:openassistant / dir: sdk/openassistant/
6- Package roots present: (public assistant SDK — one package)
7- Entry files: OpenAssistant.kt (no MainActivity/Route — SDK)
8- Deps: (none — SecureResultReceiver is owned by this module)
9- Metadata: metadata_data/sdk-openassistant.md (absent — SDKs have none by design)
10- Rust: no / screenshotTest: no
11
12## Overview
13**Purpose:** Public SDK apps expose tool-calling surfaces to `openassistant/` through — the counterpart to per-app `intents/` (notes/email/calendar/taxi/weather/fooddelivery expose `*Intent`s; this SDK is the assistant-facing client).
14**Consumers:** `openassistant/` (tool calls out); any app exposing assistant tools (calls in).
15**Entry points:** `OpenAssistant.kt` → `Exceptions.kt`.
16**Gotchas:** Tool schemas are a compatibility surface on both ends — changes need assistant + provider updated together.
17
18## Key files
19- com/vayunmathur/sdk/openassistant/OpenAssistant.kt — `generate`/`generateJson` text, `generateJsonWithImages(prompt, schema, imagePaths)` for vision structured extraction (sends `image_paths` to InferenceService; per-call default budget `DEFAULT_TIMEOUT_MS` = 330 s, above the service's 300 s intent budget, expiry as an explicit `AssistantException`); the result receiver crosses as the plain framework `ResultReceiver` (subclass stripped by a parcel round-trip), never this module's `SecureResultReceiver`, which the OpenAssistant app does not ship
20- com/vayunmathur/sdk/openassistant/Exceptions.kt
21
22## Verify (this module only)
23```
24./gradlew :sdk:openassistant:compileDevKotlin
25./gradlew :sdk:openassistant:lint
26```