Inferencia
Obtener la tarjeta del agente de disponibilidad de modelos
Descubre el agente A2A de disponibilidad de modelos: su endpoint JSON-RPC, la autenticación, la compatibilidad con notificaciones push y su única habilidad, Warm a fine-tuned model.
GET
https://api.fastino.ai
/
v1
/
model-readiness
/
agent-card.json
Obtener la tarjeta del agente de disponibilidad de modelos
curl --request GET \
--url https://api.fastino.ai/v1/model-readiness/agent-card.json \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.fastino.ai/v1/model-readiness/agent-card.json"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.fastino.ai/v1/model-readiness/agent-card.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastino.ai/v1/model-readiness/agent-card.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastino.ai/v1/model-readiness/agent-card.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastino.ai/v1/model-readiness/agent-card.json")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastino.ai/v1/model-readiness/agent-card.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_bodyGET /v1/model-readiness/agent-card.json
Devuelve la tarjeta de agente A2A del agente de
disponibilidad de modelos. Un cliente A2A la lee para encontrar el endpoint del
agente,
POST /v1/model-readiness/a2a,
y saber cómo llamarlo. La tarjeta es pública y no requiere clave de API.
El agente tiene una habilidad, Warm a fine-tuned model (model-readiness):
calienta uno de tus modelos ajustados e informa cuándo está listo, sin ejecutar
inferencia.
Ejemplo de solicitud
curl https://api.fastino.ai/v1/model-readiness/agent-card.json
Respuesta
| Campo | Valor |
|---|---|
protocolVersion | 0.3.0, la versión del protocolo A2A. |
url | El endpoint JSON-RPC, https://api.fastino.ai/v1/model-readiness/a2a. |
preferredTransport | JSONRPC. |
capabilities | streaming es false y pushNotifications es true: consulta una tarea o recibe una notificación push cuando termine. |
defaultInputModes, defaultOutputModes | application/json. |
securitySchemes, security | Una clave de API en el encabezado X-API-Key. |
skills | Una habilidad, model-readiness. |
Ejemplo de respuesta
{
"protocolVersion": "0.3.0",
"name": "Fastino model readiness",
"version": "1.0.0",
"description": "Warm an exact fine-tuned model and receive an observed readiness outcome. No inference is submitted. For user-facing coding agents. Send one data part with model_id.",
"url": "https://api.fastino.ai/v1/model-readiness/a2a",
"preferredTransport": "JSONRPC",
"capabilities": {
"streaming": false,
"pushNotifications": true
},
"defaultInputModes": ["application/json"],
"defaultOutputModes": ["application/json"],
"securitySchemes": {
"apiKey": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
},
"security": [{"apiKey": []}],
"skills": [
{
"id": "model-readiness",
"name": "Warm a fine-tuned model",
"description": "Observe readiness of a model UUID; poll or receive a terminal push notification.",
"tags": ["inference", "readiness"]
}
]
}
¿Esta página le ayudó?
⌘I
Obtener la tarjeta del agente de disponibilidad de modelos
curl --request GET \
--url https://api.fastino.ai/v1/model-readiness/agent-card.json \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.fastino.ai/v1/model-readiness/agent-card.json"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.fastino.ai/v1/model-readiness/agent-card.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastino.ai/v1/model-readiness/agent-card.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastino.ai/v1/model-readiness/agent-card.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastino.ai/v1/model-readiness/agent-card.json")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastino.ai/v1/model-readiness/agent-card.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body
