diff --git a/lib/actor/actor.go b/lib/actor/actor.go index 9c4b3d8..85b9f9d 100644 --- a/lib/actor/actor.go +++ b/lib/actor/actor.go @@ -22,6 +22,7 @@ var ( TypeSession Type = "session" TypeExternalCloudAuth Type = "external_cloud_auth" // non-Mojo system TypeExternalUser Type = "external_user" // non-Mojo user + TypeExternalLanggraph Type = "external_langgraph" TypeExternalRevenuecat Type = "external_revenuecat" ) @@ -107,6 +108,15 @@ func NewExternalUser(typ, id, reference string) Actor { } } +func NewExternalLanggraph(userID ksuid.ID) Actor { + return Actor{ + Type: TypeExternalLanggraph, + Params: map[string]any{ + "user_id": userID.String(), + }, + } +} + func NewExternalRevenuecat() Actor { return Actor{ Type: TypeExternalRevenuecat,