Skip to content
API reference

agar-extension

Import
import * as api from "@fungi.computer/shiitake/agar-extension";
Kind Export Description
function agentExtensionMethods() Serve one Shiitake extension from this App backend. Spread the result into defineAppBackend({ methods }); the build writes the three methods into the Release’s API, which is how a Release declares itself an Agent extension. An extension requesting a capability hosting lacks fails here, at build.

agentExtensionMethods()function

Section titled “agentExtensionMethods()”
Signature
function agentExtensionMethods<Context>(
extension,
): Readonly<Record<string, AppBackendMethod<Context>>>;

Serve one Shiitake extension from this App backend. Spread the result into defineAppBackend({ methods }); the build writes the three methods into the Release’s API, which is how a Release declares itself an Agent extension. An extension requesting a capability hosting lacks fails here, at build.

Type Parameter Default type
Context void
Parameter Type
extension RosteredExtensionV0

Readonly<Record<string, AppBackendMethod<Context>>>