DeviceTools

class DeviceTools(context: Context, permissions: PermissionGate, val features: Set<DeviceFeature> = DeviceFeature.entries.toSet()) : Capability(source)

Device integrations as agent tools: device info, clipboard, calendar, contacts, location, alarms / timers and notifications. Tools that change something on the device ask the user first; tools that need a runtime permission request it through permissions (the app must declare them in its manifest — this library adds none).

Times are ISO 8601 (2026-09-27T09:00:00+08:00); the device time zone applies when none is given.

Constructors

Link copied to clipboard
constructor(context: Context, permissions: PermissionGate, features: Set<DeviceFeature> = DeviceFeature.entries.toSet())

Properties

Link copied to clipboard
Link copied to clipboard
open override val instructions: String

Functions

Link copied to clipboard
open suspend fun context(): String?
Link copied to clipboard
open suspend override fun tools(): List<AgentTool>