Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
75
npm/packages/agentic-synth/tests/fixtures/configs.js
vendored
Normal file
75
npm/packages/agentic-synth/tests/fixtures/configs.js
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Test fixtures - Sample configurations
|
||||
*/
|
||||
|
||||
export const defaultConfig = {
|
||||
api: {
|
||||
baseUrl: 'https://api.test.com',
|
||||
apiKey: 'test-key-123',
|
||||
timeout: 5000,
|
||||
retries: 3
|
||||
},
|
||||
cache: {
|
||||
maxSize: 100,
|
||||
ttl: 3600000
|
||||
},
|
||||
generator: {
|
||||
seed: 12345,
|
||||
format: 'json'
|
||||
},
|
||||
router: {
|
||||
strategy: 'round-robin',
|
||||
models: []
|
||||
}
|
||||
};
|
||||
|
||||
export const productionConfig = {
|
||||
api: {
|
||||
baseUrl: 'https://api.production.com',
|
||||
apiKey: process.env.API_KEY || '',
|
||||
timeout: 10000,
|
||||
retries: 5
|
||||
},
|
||||
cache: {
|
||||
maxSize: 1000,
|
||||
ttl: 7200000
|
||||
},
|
||||
generator: {
|
||||
seed: Date.now(),
|
||||
format: 'json'
|
||||
},
|
||||
router: {
|
||||
strategy: 'least-latency',
|
||||
models: [
|
||||
{ id: 'model-1', endpoint: 'https://model1.com' },
|
||||
{ id: 'model-2', endpoint: 'https://model2.com' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
export const testConfig = {
|
||||
api: {
|
||||
baseUrl: 'http://localhost:3000',
|
||||
apiKey: 'test',
|
||||
timeout: 1000,
|
||||
retries: 1
|
||||
},
|
||||
cache: {
|
||||
maxSize: 10,
|
||||
ttl: 1000
|
||||
},
|
||||
generator: {
|
||||
seed: 12345,
|
||||
format: 'json'
|
||||
},
|
||||
router: {
|
||||
strategy: 'round-robin',
|
||||
models: []
|
||||
}
|
||||
};
|
||||
|
||||
export const minimalConfig = {
|
||||
api: {
|
||||
baseUrl: 'https://api.example.com'
|
||||
}
|
||||
};
|
||||
44
npm/packages/agentic-synth/tests/fixtures/schemas.js
vendored
Normal file
44
npm/packages/agentic-synth/tests/fixtures/schemas.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Test fixtures - Sample schemas
|
||||
*/
|
||||
|
||||
export const basicSchema = {
|
||||
name: { type: 'string', length: 10 },
|
||||
value: { type: 'number', min: 0, max: 100 }
|
||||
};
|
||||
|
||||
export const complexSchema = {
|
||||
id: { type: 'string', length: 8 },
|
||||
title: { type: 'string', length: 50 },
|
||||
description: { type: 'string', length: 200 },
|
||||
priority: { type: 'number', min: 1, max: 5 },
|
||||
active: { type: 'boolean' },
|
||||
tags: { type: 'array', items: 10 },
|
||||
metadata: {
|
||||
created: { type: 'number' },
|
||||
updated: { type: 'number' }
|
||||
}
|
||||
};
|
||||
|
||||
export const vectorSchema = {
|
||||
document_id: { type: 'string', length: 16 },
|
||||
text: { type: 'string', length: 100 },
|
||||
embedding: { type: 'vector', dimensions: 128 },
|
||||
score: { type: 'number', min: 0, max: 1 }
|
||||
};
|
||||
|
||||
export const roboticsSchema = {
|
||||
command: { type: 'string', length: 16 },
|
||||
x: { type: 'number', min: -100, max: 100 },
|
||||
y: { type: 'number', min: -100, max: 100 },
|
||||
z: { type: 'number', min: 0, max: 50 },
|
||||
velocity: { type: 'number', min: 0, max: 10 }
|
||||
};
|
||||
|
||||
export const streamingSchema = {
|
||||
event_id: { type: 'string', length: 12 },
|
||||
timestamp: { type: 'number' },
|
||||
event_type: { type: 'string', length: 20 },
|
||||
payload: { type: 'string', length: 500 },
|
||||
priority: { type: 'number', min: 1, max: 10 }
|
||||
};
|
||||
Reference in New Issue
Block a user