AGENT SKILL

asi1-chat

Query the ASI:One LLM — the AI model by the ASI Alliance (Fetch.ai + SingularityNET + Ocean Protocol). OpenAI-compatible API. Supports asi1 (default) and asi1-mini models. Requires ASI_ONE_API_KEY env var. Use when asked to "use ASI", "query ASI:One", or "use the Fetch.ai LLM".

License 许可
Apache-2.0
最近更新
2026-06-30
Stars
★ 2
Forks
3

01 前言 Front Matter

name
asi1-chat
license
Apache-2.0
metadata
{ "author": "Fetch.ai", "version": "1.1.0", "last-updated": "2026-04-21" }
description
Query the ASI:One LLM — the AI model by the ASI Alliance (Fetch.ai + SingularityNET + Ocean Protocol). OpenAI-compatible API. Supports asi1 (default) and asi1-mini models. Requires ASI_ONE_API_KEY env var. Use when asked to "use ASI", "query ASI:One", or "use the Fetch.ai LLM".
allowed-tools
Read Bash(python3 *) Bash(curl *) Bash(pip install requests)
compatibility
Python 3.8+, network access, ASI_ONE_API_KEY env var

02 资源文件 1

03 SKILL.md 正文

ASI:One Chat

Overview

Query the ASI:One large language model — built by the Artificial Superintelligence (ASI) Alliance. OpenAI-compatible API with asi1 (default, recommended) and asi1-mini (faster, lighter) models.

When to Use

  • User asks to "use ASI:One" or "query the ASI LLM"
  • User asks to "use Fetch.ai's AI model"
  • User wants an alternative to OpenAI/Anthropic for a specific query
  • User asks about ASI Alliance AI capabilities

Prerequisites

  • ASI_ONE_API_KEY environment variable set
  • Python 3.8+ with requests

Quick Steps

1. Simple query

python3 scripts/asi1_chat.py --prompt "Explain the ASI Alliance in 3 sentences"

2. With system prompt

python3 scripts/asi1_chat.py \
  --prompt "What are the benefits of decentralized AI?" \
  --system "You are a blockchain and AI expert. Be concise." \
  --model asi1

3. Streaming mode

python3 scripts/asi1_chat.py --prompt "Write a haiku about AI agents" --stream

4. Output

{
  "status": "success",
  "model": "asi1",
  "response": "The ASI Alliance is a collaboration between Fetch.ai, SingularityNET, and Ocean Protocol...",
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 87,
    "total_tokens": 99
  }
}

API Details

  • Base URL: https://api.asi1.ai/v1
  • Endpoint: /chat/completions
  • Models: asi1 (default, recommended), asi1-mini (faster, lighter)
  • Format: OpenAI-compatible (same request/response format)
  • Auth: Authorization: Bearer {ASI_ONE_API_KEY}

Also Works with OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ASI_ONE_API_KEY"],
    base_url="https://api.asi1.ai/v1"
)

response = client.chat.completions.create(
    model="asi1",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Edge Cases

  • Rate limits: If 429 error, wait and retry
  • Timeout: Large prompts may take 30–60s — increase --max-tokens or use --stream for real-time output. Use asi1-mini if you need lower latency.
  • Streaming: Use --stream for real-time output on long responses
  • Token limits: Context window varies by model — keep prompts reasonable

About ASI:One

ASI:One is the AI model from the ASI Alliance — a merger of:

  • Fetch.ai — Autonomous AI agents and infrastructure
  • SingularityNET — Decentralized AI marketplace
  • Ocean Protocol — Data exchange and monetization

The ASI token (formerly FET) is the native token of the ecosystem.

04 同仓库更多 Skills

fetchai
fetchai/agentverse-skills

agentverse-search

Search Fetch.ai's Agentverse for agents by keyword, capability, or protocol. Returns agent names, addresses, descriptions, and supported protocols. Use when asked to find, discover, or list available agents on Agentverse. Requires AGENTVERSE_API_KEY env var.

★ 2
fetchai
fetchai/agentverse-skills

agentverse-memory

Give any AI agent persistent, graph-native memory via Agentverse Memory — a managed MCP service with 35 JSON-RPC tools covering 4 memory types (episodic, semantic/graph, procedural, working) plus shared multi-agent memory spaces. Zero LLM at write time (<5ms writes, $0 ingest). Graph memory on every tier — including free. Hybrid retrieval (TF-IDF + dense, RRF-fused). Requires AM_API_KEY env var. Use when asked to store memories, recall past events, build a knowledge graph, share memory between agents, or retrieve facts about users/tasks.

★ 2
fetchai
fetchai/agentverse-skills

agentverse-manage

Manage hosted agents on Fetch.ai's Agentverse: list, start, stop, view logs, and delete agents. Provides operational control over your deployed agents. Requires AGENTVERSE_API_KEY env var. Use when asked to list agents, check agent status, view logs, start/stop agents, or clean up.

★ 2
fetchai
fetchai/agentverse-skills

agentverse-inspect

Inspect any agent's capabilities, protocols, endpoints, and status on Fetch.ai's Agentverse Almanac. Use to understand what an agent can do before interacting with it. Requires AGENTVERSE_API_KEY env var. Use when asked to "inspect", "check", or "what can this agent do".

★ 2
fetchai
fetchai/agentverse-skills

agentverse-image-gen

Generate images using AI agents on Fetch.ai's Agentverse. Sends a text prompt to an image generation agent and returns the generated image URL. Handles agent discovery, relay deployment, and response parsing automatically. Requires AGENTVERSE_API_KEY env var. Use when asked to generate, create, or make an image via Agentverse.

★ 2
fetchai
fetchai/agentverse-skills

agentverse-deploy

Deploy Python code as a hosted agent on Fetch.ai's Agentverse. Creates a new agent, uploads code, and optionally starts it. Handles the tricky code upload format automatically. Requires AGENTVERSE_API_KEY env var. Use when asked to deploy, host, or publish an agent on Agentverse.

★ 2