MCPcopy Create free account
hub / github.com/Effect-TS/effect / isMessage

Function isMessage

packages/effect/src/unstable/ai/Prompt.ts:1008–1008  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

1006 * @since 4.0.0
1007 */
1008export const isMessage = (u: unknown): u is Message => Predicate.hasProperty(u, MessageTypeId)
1009
1010/**
1011 * Base interface for all message types.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected