协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
agnes-free-text【开发与工程】Call the free Agnes text model API for chat completions, streaming answers, coding help, tool-calling experiments, and OpenAI-compatible text generation. Use when the user asks for 免费文本, 免费的文本模型, free text API, Agnes text, Agnes-2.0-Flash, free LLM calls, or wants to use a free chat/completion model through an Agent skill.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to call Sapiens AI's Agnes-2.0-Flash text model through the Agnes API.
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.
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
scripts/agnes_text.py for repeatable calls. Prefer --dry-run first when parameters are complex.agnes-2.0-flash unless the API docs are updated.--message role:content values instead of flattening the conversation into one prompt.--tools-json as either an inline JSON array or a path to a JSON file.POST https://apihub.agnes-ai.com/v1/chat/completionsagnes-2.0-flashAGNES_API_KEY first.Read references/api.md when you need endpoint details, response fields, tool-calling shape, or streaming examples.