Skip to main content

Run Prompt Skill

Fill a saved prompt template with your values and run it; returns text, or a Dictionary for JSON skills.

Command in the Prompt Skills toolkit · id ooa.ai_skills/run · 15 inputs (1 required), 7 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SkillStringYesSkill name (file name in ai-skills without .json).
ValuesDictionaryNoValues for the skill's placeholders, written $name$ in its prompt.
ConnectionStringNoModel Connection to use instead of the skill's own provider and model.
API keyCredentialNoAPI key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token.
ModelStringNoOverride the skill's model.
Endpoint addressStringNoEndpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1).
AWS access key IDCredentialNoAWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key).
AWS regionStringNoAWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1. Overrides the skill's "region".
TemperatureNumberNoOverride the skill's temperature; the skill's own (or 0) when empty.
Maximum tokensNumberNoOverride the skill's maximum answer length; the skill's own (or 2000) when empty.
Fail on errorBooleanNotrueStop the agent when the skill fails; when off, success is false and error says why.
Timeout (seconds)NumberNo0Seconds to wait for the model; 180 when 0.
Knowledge indexFileNoA Knowledge Q&A index (built with Build index) whose best passages go to the model with the prompt; overrides the skill's own "knowledge".
Top kNumberNoHow many passages of the index the model gets; the skill's own (or 4) when empty.
FilesListNoDocuments given to the model with the prompt (text, Markdown, HTML, CSV, JSON, XML, Word, PowerPoint or PDF), e.g. an invoice to check.

Outputs​

OutputTypeWhat it is
textStringThe answer as text.
jsonAnyThe answer parsed as JSON, for skills with output json.
successBooleanTrue when the skill ran; false only when fail_on_error is off and it failed.
errorStringWhat went wrong, when success is false.
input_tokensNumberTokens in the request.
output_tokensNumberTokens in the answer.
sourcesListThe knowledge passages given to the model (n, source, passage, score, text); empty without a knowledge index.