MCPcopy
hub / github.com/Effect-TS/effect / handle

Method handle

packages/experimental/src/EventLog.ts:103–103  ·  view source on GitHub ↗

* Add the implementation for an `Event` to a `Handlers` group.

(
    name: Tag,
    handler: (
      options: {
        readonly payload: Event.PayloadWithTag<Events, Tag>
        readonly entry: Entry
        readonly conflicts: Array<{
          readonly entry: Entry
          readonly payload: Event.PayloadWithTag<Events, Tag>
        }>
      }
    ) => Effect.Effect<Event.SuccessWithTag<Events, Tag>, Event.ErrorWithTag<Events, Tag>, R1>
  )

Source from the content-addressed store, hash-verified

101 * Add the implementation for an `Event` to a `Handlers` group.
102 */
103 handle<Tag extends Events["tag"], R1>(
104 name: Tag,
105 handler: (
106 options: {

Callers 7

HttpApi.test.tsFile · 0.65
api.tsFile · 0.65
resolveToolCallsFunction · 0.65
McpServerClass · 0.65
handleFunction · 0.65
layerHttpApiFunction · 0.65
layerHttpApiFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected