Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Jun 7, 2024

ActionType is really an implementation detail. By making it internal,
not only do we reduce clutter in the user-facing API, but we also
make it impossible for 3P code to register any actions of a type
that they shouldn't. For instance, now the only way to register an
embedder is with ai.DefineEmbedder.

The exception is custom actions, so we provide DefineCustomAction.

ActionType is really an implementation detail. By making it internal,
not only do we reduce clutter in the user-facing API, but we also
make it impossible for 3P code to register any actions of a type
that they shouldn't. For instance, now the only way to register an
embedder is with ai.DefineEmbedder.

The exception is custom actions, so we provide DefineCustomAction.
@jba jba requested review from ianlancetaylor and pavelgj June 7, 2024 20:36
@jba jba merged commit 9d8d0b1 into main Jun 7, 2024
@jba jba deleted the jba-internal-atype branch June 7, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants