Inferenz
Agent Card des Readiness-Agenten abrufen
Entdecken Sie den A2A-Agenten für Modellbereitschaft: seinen JSON-RPC-Endpunkt, die Authentifizierung, die Unterstützung von Push-Benachrichtigungen und seinen einen Skill, Warm a fine-tuned model.
GET
https://api.fastino.ai
/
v1
/
model-readiness
/
agent-card.json
Agent Card des Readiness-Agenten abrufen
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
Gibt die A2A-Agent-Card des Agenten für
Modellbereitschaft zurück. Ein A2A-Client liest sie, um den Endpunkt des
Agenten,
POST /v1/model-readiness/a2a,
und die Art des Aufrufs zu ermitteln. Die Karte ist öffentlich und benötigt
keinen API-Schlüssel.
Der Agent hat einen Skill, Warm a fine-tuned model (model-readiness): Er
wärmt eines Ihrer feinabgestimmten Modelle vor und meldet, wann es bereit ist,
ohne Inferenz auszuführen.
Anfragebeispiel
curl https://api.fastino.ai/v1/model-readiness/agent-card.json
Antwort
| Feld | Wert |
|---|---|
protocolVersion | 0.3.0, die Version des A2A-Protokolls. |
url | Der JSON-RPC-Endpunkt, https://api.fastino.ai/v1/model-readiness/a2a. |
preferredTransport | JSONRPC. |
capabilities | streaming ist false und pushNotifications ist true: Fragen Sie einen Task ab oder erhalten Sie eine Push-Benachrichtigung, wenn er endet. |
defaultInputModes, defaultOutputModes | application/json. |
securitySchemes, security | Ein API-Schlüssel im Header X-API-Key. |
skills | Ein Skill, model-readiness. |
Antwortbeispiel
{
"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"]
}
]
}
War diese Seite hilfreich?
⌘I
Agent Card des Readiness-Agenten abrufen
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
