effect-io-ai

Package: @effect/cluster
Module: Entity

Entity.make

Creates a new Entity of the specified type which will accept messages that adhere to the provided schemas.

Signature

declare const make: <const Type extends string, Rpcs extends ReadonlyArray<Rpc.Any>>(type: Type, protocol: Rpcs) => Entity<Type, Rpcs[number]>

Source

Since v1.0.0