seisei_intents 0.1.0-dev.1 copy "seisei_intents: ^0.1.0-dev.1" to clipboard
seisei_intents: ^0.1.0-dev.1 copied to clipboard

Generic app action and intent bridge contracts for Seisei tools.

seisei_intents #

Generic app-action and intent bridge contracts for Seisei tools.

This package maps ToolDefinition and ToolCall from seisei into host-app action definitions and invocations. It intentionally stays pure Dart so apps can test tool and intent behavior before adding Flutter/native platform code.

Apple App Intents remain native Swift source processed at build time. This package defines the generic contract and can generate conservative scalar Swift wrapper source from AppActionDefinition data. The optional packages/seisei_apple_intents Swift package provides the runtime helper types used by handwritten or generated App Intents.

const action = AppActionDefinition(
  id: 'create_note',
  title: 'Create Note',
  description: 'Create a note in the host app.',
  parameters: {
    'type': 'object',
    'properties': {
      'title': {'type': 'string', 'title': 'Title'},
      'priority': {'type': 'integer', 'title': 'Priority'},
    },
    'required': ['title'],
  },
);

final source = AppleAppIntentSourceGenerator.sourceForAction(
  action,
  shortcut: const AppleAppShortcutDefinition(
    phrases: ['Create a note in \\(.applicationName)'],
    shortTitle: 'Create Note',
    systemImageName: 'note.text',
  ),
);

Write the generated Swift source into an app, extension, framework, or Swift package target that Xcode compiles and indexes. The generator intentionally supports only string, integer, number, and boolean JSON schema parameters, with unsupported shapes reported as AppleAppIntentSourceException.

0
likes
0
points
55
downloads

Publisher

verified publisherjha.sh

Weekly Downloads

Generic app action and intent bridge contracts for Seisei tools.

Repository (GitHub)
View/report issues

Topics

#ai #dart #intents #tool-calling #app-actions

License

unknown (license)

Dependencies

seisei

More

Packages that depend on seisei_intents