Skip to content

Documentation / @agentick/gateway / Method

Type Alias: Method ​

Method = SimpleMethodHandler | StreamingMethodHandler | MethodDefinition<any>

Defined in: gateway/src/types.ts:415

Method can be:

  • Simple function: async (params) => result
  • Streaming function: async function* (params)
  • Method definition: method({ schema, handler, roles, ... })

Released under the ISC License.