Skip to content

[FR] Sending Events to Assistants #99

@AdamSobieski

Description

@AdamSobieski

Introduction

What if software applications (e.g., in Web browsers) could send events or notifications to interoperating AI assistants?

In these regards, perhaps a new prompt role could be of use. Adding to those existing prompt roles of system, user, assistant, and function, one could call this new prompt role either: event, user-event, application, or note.

Software events or notifications could be serialized into JSON while potentially including multimodal content, e.g., images.

const json_selection_changed_event = AI_event_from_UI_event(e);

const response = await session.prompt([
  // ...
  { role: 'event', content: json_selection_changed_event },
  { role: 'user', content: 'Tell me about the selected product.' }
]);

Use Cases

Selection-focused Questions and Dialogue

Text Selections

End-users could select text and refer to these selections conversationally.

Image Selections

End-users could select point coordinates, create bounding rectangles, draw other selection shapes, or select defined regions from image maps atop images and refer to these selections conversationally.

Item Selections

End-users could select items (e.g., products from a displayed set) and refer to these selections conversationally, e.g.: "this item", "that item", or "the selected item".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions