OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Test for getting tool
Source Definition
import { defineTestSpec } from '@lssm-tech/lib.contracts-spec/tests';
export const toolGetTest = defineTestSpec({
meta: {
key: 'test.agent.tool.get',
version: '1.0.0',
owners: ['@agent-console-team'],
description: 'Test for getting tool',
stability: 'stable',
tags: ['test'],
},
target: {
type: 'operation',
operation: { key: 'agent.tool.get', version: '1.0.0' },
},
scenarios: [
{
key: 'success',
when: { operation: { key: 'agent.tool.get' } },
then: [{ type: 'expectOutput', match: {} }],
},
{
key: 'error',
when: { operation: { key: 'agent.tool.get' } },
then: [{ type: 'expectError' }],
},
],
});