23 lines
770 B
JavaScript
23 lines
770 B
JavaScript
import { qvacStatus } from '../daemon/qvac-master.js';
|
|
|
|
export function createRuntimeTools({ computer } = {}) {
|
|
return [
|
|
{
|
|
name: 'jarvis_status',
|
|
description: 'Return the local Jarvis QuantumVerse Automatic Computer master status.',
|
|
parameters: { type: 'object', properties: {} },
|
|
execute: () => ({
|
|
local: true,
|
|
qvac: qvacStatus(),
|
|
computer_use: computer?.status?.() || { active: false, backend: 'none' },
|
|
}),
|
|
},
|
|
{
|
|
name: 'cu_status',
|
|
description: 'Return whether the user pressed Allow now for computer use, and the remaining step budget.',
|
|
parameters: { type: 'object', properties: {} },
|
|
execute: () => computer?.status?.() || { active: false, backend: 'none' },
|
|
},
|
|
];
|
|
}
|