javascript

package
v0.0.0-...-e0216f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFunctions = []byte(`
export async function handleToolCall() {
  return new Response(JSON.stringify({ error: "Tool calling is not implemented" }), {
    status: 501,
	headers: { "Content-Type": "application/json" },
  });
}

export async function handleResources() {
  return new Response(JSON.stringify({ error: "Resource handling is not implemented" }), {
    status: 501,
	headers: { "Content-Type": "application/json" },
  });
}
`[1:])

DefaultFunctions contains a default implementation of the functions.js file. It is used when custom code is not found on the runner machine. The benefit of having this default implementation is that it allows Gram to always get a useful response even in failure scenarios.

View Source
var Entrypoint []byte

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL