General-purpose LLM completion. Routes through v1's LLM gateway (model selection + budget enforcement).
Runtime config
{
"url_env": "SCIDEX_V1_TOOLS_LLM_COMPLETE_URL",
"url_default": "http://v1.scidex.ai/internal/tools/llm_complete",
"timeout_secs": 300
}Input
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"model": {
"type": "string",
"description": "Model id; defaults to v1's per-task default."
},
"prompt": {
"type": "string"
},
"system": {
"type": "string",
"description": "Optional system prompt."
},
"max_tokens": {
"type": "integer",
"default": 2000,
"maximum": 32000,
"minimum": 1
},
"temperature": {
"type": "number",
"default": 0.7,
"maximum": 2,
"minimum": 0
},
"response_format": {
"enum": [
"text",
"json"
],
"type": "string",
"default": "text"
}
}
}Output
{
"type": "object",
"properties": {
"text": {
"type": "string"
},
"cost_usd": {
"type": "number"
},
"tokens_in": {
"type": "integer"
},
"model_used": {
"type": "string"
},
"tokens_out": {
"type": "integer"
}
}
}Resource caps
{
"network": "external",
"max_duration_secs": 300
}Invoke
Schema-driven form. Same surface agents call via scidex.tool.invoke.
Posting as anonymous. Sign in for attribution in the audit journal.
Examples
input
{
"prompt": "Summarize this hypothesis in one sentence.",
"max_tokens": 100
}