Spaces:
Sleeping
Sleeping
File size: 1,545 Bytes
0f203fb 51fc219 0f203fb 51fc219 0f203fb 51fc219 0f203fb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
/**
* Schema definitions for the Pollinations Text API
*/
/**
* Schema for the respondText tool
*/
export const respondTextSchema = {
name: 'respondText',
description: 'Respond with text to a prompt using the Pollinations Text API. User-configured settings in MCP config will be used as defaults unless specifically overridden.',
inputSchema: {
type: 'object',
properties: {
prompt: {
type: 'string',
description: 'The text prompt to generate a response for'
},
model: {
type: 'string',
description: 'Model to use for text generation (default: user config or "openai"). Use listTextModels to see all available models'
},
seed: {
type: 'number',
description: 'Seed for reproducible results (default: random)'
},
temperature: {
type: 'number',
description: 'Controls randomness in the output (0.0 to 2.0, default: user config or model default)'
},
top_p: {
type: 'number',
description: 'Controls diversity via nucleus sampling (0.0 to 1.0, default: user config or model default)'
},
system: {
type: 'string',
description: 'System prompt to guide the model\'s behavior (default: user config or none)'
}
},
required: ['prompt']
}
};
/**
* Schema for the listTextModels tool
*/
export const listTextModelsSchema = {
name: 'listTextModels',
description: 'List available text models',
inputSchema: {
type: 'object',
properties: {}
}
};
|