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.
Click to show internal directories.
Click to hide internal directories.