Fireworks AI
fireworks_aiFireworks AI provides APIs for serverless model inference, fine-tuning, deployments, datasets, evaluations, and account management.
Acciones disponibles (9)
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.
Create Chat CompletionFIREWORKS_AI_CREATE_CHAT_COMPLETIONAcciónGenerate one non-streaming OpenAI-compatible chat completion from role-based messages using a caller-supplied Fireworks model or deployment ID.
FIREWORKS_AI_CREATE_CHAT_COMPLETIONAcciónGenerate one non-streaming OpenAI-compatible chat completion from role-based messages using a caller-supplied Fireworks model or deployment ID.
Parámetros de entrada
seedintegerOptional seed for best-effort repeatability.
stopanyOne or more sequences that stop generation.
modelstringObligatorioExact Fireworks model or deployed-model identifier to invoke; discover candidates with the Fireworks AI model or deployment listing tools.
toolsobject[]Function definitions the model may call.
top_pnumberNucleus-sampling probability mass; normally tune this or temperature, not both.
messagesobject[]ObligatorioConversation messages in order; each item must contain a role and OpenAI-compatible content or tool-call data.
max_tokensintegerMaximum number of tokens to generate; omit to use the model or provider default.
temperaturenumberSampling temperature; omit to use the provider default.
tool_choiceanyWhether and which supplied function tools the model may call.
response_formatobjectTyped output format, such as JSON mode, JSON Schema, grammar, or text, when the model supports it.
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
Create EmbeddingsFIREWORKS_AI_CREATE_EMBEDDINGSAcciónCreate embedding vectors for one or more caller-provided inputs using a caller-supplied Fireworks embedding model.
FIREWORKS_AI_CREATE_EMBEDDINGSAcciónCreate embedding vectors for one or more caller-provided inputs using a caller-supplied Fireworks embedding model.
Parámetros de entrada
inputanyObligatorioText, a batch of up to 2048 texts, or arbitrary structured records whose keys are referenced by prompt_template. For example, input {'text': 'Hello', 'source': 'docs'} can use prompt_template 'Embed {text} from {source}'.
modelstringObligatorioExact embedding model identifier; Fireworks examples may use provider/model form rather than a full account resource name.
normalizebooleanWhether to normalize returned vectors; omit to use the model default.
dimensionsintegerRequested output vector dimensions when the selected model supports dimension reduction.
prompt_templatestringTemplate that substitutes structured-input keys, for example 'Embed this text: {text}'.
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
Generate Model ResponseFIREWORKS_AI_GENERATE_MODEL_RESPONSEAcciónGenerate one non-streaming Responses API result, optionally continuing a stored response or using function, MCP, or SSE tools; storage is off by default.
FIREWORKS_AI_GENERATE_MODEL_RESPONSEAcciónGenerate one non-streaming Responses API result, optionally continuing a stored response or using function, MCP, or SSE tools; storage is off by default.
Parámetros de entrada
inputanyObligatorioText input or ordered input items. Use a plain string for simple prompts; to continue a function-tool loop, replay the model's function_call item followed by a function_call_output item carrying the tool result.
modelstringObligatorioExact Fireworks model or deployed-model identifier to invoke; no model is selected by the toolkit.
storebooleanWhether Fireworks should retain the response for later continuation; defaults to false for ephemeral calls.
toolsarrayVerified function, MCP, or SSE tool definitions available to the model.
top_pnumberNucleus-sampling probability mass from 0 to 1; normally tune this or temperature, not both.
truncationstringenumUse 'auto' to truncate overlong context or 'disabled' to return an error; omit for the provider default.
autodisabledtemperaturenumberSampling temperature from 0 to 2; omit to use the provider default.
tool_choiceanyWhether the model must avoid tools, choose automatically, call at least one supplied tool, or call one specific named function tool.
instructionsstringSystem-level instructions that guide the model for this response.
max_tool_callsintegerMaximum number of tool calls allowed for this response.
max_output_tokensintegerMaximum number of output tokens across generated content; omit to use the model limit.
previous_response_idstringID of a previously stored response to continue; omit for an independent response.
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 DeploymentFIREWORKS_AI_GET_DEPLOYMENTAcciónReturn configuration and serving status for one Fireworks deployment without scaling or modifying it.
FIREWORKS_AI_GET_DEPLOYMENTAcciónReturn configuration and serving status for one Fireworks deployment without scaling or modifying it.
Parámetros de entrada
read_maskstringComma-separated deployment fields to return; omit for the provider's default projection.
account_idstringObligatorioFireworks account ID containing the deployment.
deployment_idstringObligatorioDeployment resource ID within the account, obtainable with the Fireworks AI deployment listing tool.
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 ModelFIREWORKS_AI_GET_MODELAcciónReturn metadata and status for one model resource in a Fireworks account; this does not test whether the model can serve inference.
FIREWORKS_AI_GET_MODELAcciónReturn metadata and status for one model resource in a Fireworks account; this does not test whether the model can serve inference.
Parámetros de entrada
model_idstringObligatorioModel resource ID within the account, obtainable with the Fireworks AI model listing tool.
read_maskstringComma-separated model fields to return; omit for the provider's default projection.
account_idstringObligatorioFireworks account ID containing the model resource.
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 AccountsFIREWORKS_AI_LIST_ACCOUNTSAcciónReturn one page of Fireworks accounts accessible to the API key so an agent can obtain account IDs for model and deployment discovery.
FIREWORKS_AI_LIST_ACCOUNTSAcciónReturn one page of Fireworks accounts accessible to the API key so an agent can obtain account IDs for model and deployment discovery.
Parámetros de entrada
filterstringFireworks management API filter expression for accounts.
page_sizeintegerMaximum accounts to return in this page (1-200).
read_maskstringComma-separated account fields to return; omit for the provider's default projection.
next_cursorstringContinuation cursor returned by a previous call to this tool; omit for the first page.
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 DeploymentsFIREWORKS_AI_LIST_DEPLOYMENTSAcciónReturn one page of deployment resources in a Fireworks account for deployment ID discovery and serving-capacity and status inspection.
FIREWORKS_AI_LIST_DEPLOYMENTSAcciónReturn one page of deployment resources in a Fireworks account for deployment ID discovery and serving-capacity and status inspection.
Parámetros de entrada
filterstringFireworks management API filter expression for deployment resources.
order_bystringComma-separated deployment fields to order by; append ' desc' for descending order.
page_sizeintegerMaximum deployment resources to return in this page (1-200).
read_maskstringComma-separated deployment fields to return; omit for the provider's default projection.
account_idstringObligatorioFireworks account ID, obtainable with the Fireworks AI account listing tool.
next_cursorstringContinuation cursor returned by a previous call to this tool; omit for the first page.
show_deletedbooleanWhether to include soft-deleted deployment resources in discovery results.
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 ModelsFIREWORKS_AI_LIST_MODELSAcciónReturn one page of model resources in a Fireworks account for model-ID discovery and status inspection; availability for inference is not guaranteed.
FIREWORKS_AI_LIST_MODELSAcciónReturn one page of model resources in a Fireworks account for model-ID discovery and status inspection; availability for inference is not guaranteed.
Parámetros de entrada
filterstringFireworks management API filter expression for model resources.
order_bystringComma-separated model fields to order by; append ' desc' for descending order.
page_sizeintegerMaximum model resources to return in this page (1-200).
read_maskstringComma-separated model fields to return; omit for the provider's default projection.
account_idstringObligatorioFireworks account ID, obtainable with the Fireworks AI account listing tool.
next_cursorstringContinuation cursor returned by a previous call to this tool; omit for the first page.
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
Rerank DocumentsFIREWORKS_AI_RERANK_DOCUMENTSAcciónRank a provided document list by relevance to a query using an optional caller-supplied Fireworks reranker model.
FIREWORKS_AI_RERANK_DOCUMENTSAcciónRank a provided document list by relevance to a query using an optional caller-supplied Fireworks reranker model.
Parámetros de entrada
taskstringOptional task instruction supported by the selected reranker model.
modelstringExact reranker model identifier; omit only when intentionally using Fireworks' documented provider default.
querystringObligatorioSearch query against which document relevance is scored.
top_nintegerMaximum number of highest-ranked results to return.
documentsstring[]ObligatorioDocuments to score and reorder; result indices refer to this original array.
return_documentsbooleanWhether each result should include its document text as well as its original index and relevance score.
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