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

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

AGENTS.md1.8 KiBRenderedCodeRaw

AGENTS.md — sdk/openassistant/ (':sdk:openassistant')

Scoped supplement. Global rules in root AGENTS.md apply. Stay inside sdk/openassistant/ + allowed shared modules. Do not root-scan.

  • Gradle: :sdk:openassistant / dir: sdk/openassistant/
  • Package roots present: (public assistant SDK — one package)
  • Entry files: OpenAssistant.kt (no MainActivity/Route — SDK)
  • Deps: (none — SecureResultReceiver is owned by this module)
  • Metadata: metadata_data/sdk-openassistant.md (absent — SDKs have none by design)
  • Rust: no / screenshotTest: no

Overview

Purpose: Public SDK apps expose tool-calling surfaces to openassistant/ through — the counterpart to per-app intents/ (notes/email/calendar/taxi/weather/fooddelivery expose *Intents; this SDK is the assistant-facing client). Consumers: openassistant/ (tool calls out); any app exposing assistant tools (calls in). Entry points: OpenAssistant.kt → Exceptions.kt. Gotchas: Tool schemas are a compatibility surface on both ends — changes need assistant + provider updated together.

Key files

  • 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
  • com/vayunmathur/sdk/openassistant/Exceptions.kt

Verify (this module only)

./gradlew :sdk:openassistant:compileDevKotlin
./gradlew :sdk:openassistant:lint