Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kangarooking avatar

Agnes Free Text

  • 45 installs
  • 174 repo stars
  • Updated June 1, 2026
  • kangarooking/agnes-free-model-skills

Call the Agnes-2.0-Flash free text model API for chat completions, streaming, and tool-calling experiments.

About

Wrapper for Sapiens AI's free text generation model with OpenAI-compatible API. Integrates into agent skills for code help, chat, and LLM experiments without API cost.

  • OpenAI-compatible SDK
  • Free streaming text generation

Agnes Free Text by the numbers

  • 45 all-time installs (skills.sh)
  • Ranked #7,749 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kangarooking/agnes-free-model-skills --skill agnes-free-text

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs45
repo stars174
Last updatedJune 1, 2026
Repositorykangarooking/agnes-free-model-skills

What it does

Call the Agnes-2.0-Flash free text model API for chat completions, streaming, and tool-calling experiments.

Files

SKILL.mdMarkdownGitHub ↗

Agnes Free Text

Use this skill to call Sapiens AI's Agnes-2.0-Flash text model through the Agnes API.

Credential Rule

Read the API key from the environment. Do not hardcode keys in prompts, scripts, skill files, commits, or shell history.

Preferred variable:

export AGNES_API_KEY="..."

The helper also accepts AGNES_TOKEN as a fallback.

Quick Start

Run a normal chat completion:

python3 scripts/agnes_text.py chat \
  --prompt "用三句话解释 Agent 为什么需要工具调用"

Use a system prompt and save the raw response JSON:

python3 scripts/agnes_text.py chat \
  --system "You are a concise technical writer." \
  --prompt "Explain tool calling for a beginner." \
  --output-json ./outputs/agnes-free-text/response.json

Pass tool definitions from JSON:

python3 scripts/agnes_text.py chat \
  --prompt "Decide whether a weather tool is needed." \
  --tools-json ./tools.json \
  --tool-choice auto

Validate the request shape without calling the API:

python3 scripts/agnes_text.py chat \
  --prompt "Write a short product intro." \
  --max-tokens 300 \
  --dry-run

Workflow

1. Clarify whether the user wants a direct answer, JSON-like structured output, coding help, or streaming output. 2. Use scripts/agnes_text.py for repeatable calls. Prefer --dry-run first when parameters are complex. 3. Keep the model fixed to agnes-2.0-flash unless the API docs are updated. 4. For multi-turn context, pass repeated --message role:content values instead of flattening the conversation into one prompt. 5. For tool calling, pass --tools-json as either an inline JSON array or a path to a JSON file.

Notes

  • Endpoint: POST https://apihub.agnes-ai.com/v1/chat/completions
  • Model: agnes-2.0-flash
  • Request shape is compatible with OpenAI Chat Completions.
  • Supported features include system prompts, multi-turn messages, streaming, tool definitions, and tool choice.
  • If the API returns an authorization error, check AGNES_API_KEY first.

Reference

Read references/api.md when you need endpoint details, response fields, tool-calling shape, or streaming examples.

Related skills

AI & Agent Buildingllmautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.