PromptHub
prompt_hubManage, retrieve, and execute versioned prompts and projects through the PromptHub API.
Acciones disponibles (4)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Get Current TeamPROMPT_HUB_GET_CURRENT_TEAMAcciónReturn the current PromptHub team ID for the connected account. Use it when a team-scoped operation must target an explicit team.
PROMPT_HUB_GET_CURRENT_TEAMAcciónReturn the current PromptHub team ID for the connected account. Use it when a team-scoped operation must target an explicit team.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Project HeadPROMPT_HUB_GET_PROJECT_HEADAcciónRetrieve a project's latest committed prompt and model configuration, with optional branch and variable resolution.
PROMPT_HUB_GET_PROJECT_HEADAcciónRetrieve a project's latest committed prompt and model configuration, with optional branch and variable resolution.
Parámetros de entrada
branchstringBranch whose head to retrieve; omit it to use the project's default branch.
variablesobjectPrompt variable overrides keyed by variable label. Unknown labels are ignored by PromptHub.
project_idintegerObligatorioPromptHub project ID returned by List Projects or shown in the project URL/API tab.
use_fallback_defaultsbooleanWhether to fill missing variables from PromptHub project and team defaults.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ProjectsPROMPT_HUB_LIST_PROJECTSAcciónList projects in a PromptHub team, optionally filtered by group, model, or provider.
PROMPT_HUB_LIST_PROJECTSAcciónList projects in a PromptHub team, optionally filtered by group, model, or provider.
Parámetros de entrada
groupstringOnly return projects in this group name.
modelstringOnly return projects whose head revision uses this model.
team_idintegerPromptHub team ID. Omit it to list projects in the connected account's current team.
providerstringOnly return projects whose head revision uses this model provider, such as OpenAI, Anthropic, Azure, Google, or Amazon.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run ProjectPROMPT_HUB_RUN_PROJECTAcciónExecute a committed PromptHub project prompt with optional variables and return the generated text, usage, cost, and timing metadata. This invokes the configured LLM, consumes the PromptHub plan's LLM request quota, and creates persistent run history in the project's Logs tab.
PROMPT_HUB_RUN_PROJECTAcciónExecute a committed PromptHub project prompt with optional variables and return the generated text, usage, cost, and timing metadata. This invokes the configured LLM, consumes the PromptHub plan's LLM request quota, and creates persistent run history in the project's Logs tab.
Parámetros de entrada
hashstringSpecific commit hash to execute. Omit it to use the latest commit on the selected or default branch.
branchstringBranch to execute. Omit it to use the latest commit on the project's default branch.
variablesobjectRuntime values for the project's prompt variables, keyed by variable label.
project_idintegerObligatorioPromptHub project ID returned by List Projects or shown in the project URL or API tab.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not