@zack/translate-text
Translate text into a target language using LLM.
Install
agentpm install @zack/translate-text@0.1.2Load
import { load } from '@agentpm/sdk';
const t = await load('@zack/translate-text@0.1.2');Installs
51
All time
Stars
0
Unstarred
Last publish
11m ago
v0.1.4
agent.json
{
"name": "translate-text",
"version": "0.1.2",
"description": "Translate text into a target language using LLM.",
"files": [
"dist/"
],
"entrypoint": {
"args": [
"dist/index.js"
],
"command": "node",
"timeout_ms": 120000
},
"inputs": {
"type": "object",
"required": [
"text",
"target_language"
],
"properties": {
"text": {
"type": "string",
"description": "The text to be translated"
},
"target_language": {
"type": "string",
"description": "The language to translate the text into"
}
},
"additionalProperties": false
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"translated"
],
"properties": {
"ok": {
"const": true
},
"translated": {
"type": "string",
"description": "The translated text"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)"
},
"details": {
"type": "object",
"description": "Optional structured context"
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"runtime": {
"type": "node",
"version": "20"
}
}Compatibility
NodePython