← 返回
AI智能 Key

Cogmate Client

Access and query Cogmate personal knowledge systems for knowledge retrieval, semantic search, and Q&A using a valid CogNexus access token.
使用有效的CogNexus访问令牌访问Cogmate个人知识系统,进行知识检索、语义搜索与问答。
maxiiwang
AI智能 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 636
下载
💾 7
安装
1
版本
#latest

概述

Cogmate Client

Connect to Cogmate instances for knowledge retrieval and Q&A.

Prerequisites

  • Valid access token (obtain from CogNexus or instance owner)
  • Cogmate API endpoint URL

Quick Start

Ask a Question

curl -X POST "http://{COGMATE_URL}/api/ask?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"question": "你的问题"}'

Semantic Search

curl "http://{COGMATE_URL}/api/visual/facts?token=YOUR_TOKEN&search=关键词"

API Reference

Authentication

All protected endpoints require token as query parameter (not JSON body).

Endpoints

EndpointMethodDescription
-------------------------------
/api/askPOSTAsk questions, get AI-powered answers
/api/visual/factsGETBrowse/search knowledge facts
/api/visual/statsGETGet knowledge base statistics
/api/visual/graphGETGet knowledge graph data
/api/hub/profileGETGet Cogmate profile (public)

POST /api/ask?token=YOUR_TOKEN

Ask a question against the knowledge base.

Request:

{
  "question": "What do you know about X?"
}

Response:

{
  "answer": "Based on the knowledge base...",
  "sources": [{"id": "fact_xxx", "summary": "..."}]
}

GET /api/visual/facts

Browse or search facts.

Parameters:

  • token (required): Access token
  • search (optional): Search query
  • layer (optional): Filter by layer (fact/connection/abstract)

GET /api/visual/stats

Get statistics about the knowledge base.

Response:

{
  "facts": 87,
  "connections": 45,
  "abstracts": 12
}

Token Permissions

ScopeCapabilities
--------------------
fullComplete access: browse, ask, view private
qa_publicQ&A only (may have usage limits)
browse_publicBrowse public facts only

Helper Scripts

Ask Question

./scripts/ask.sh <cogmate_url> <token> "Your question"

Search Knowledge

./scripts/search.sh <cogmate_url> <token> "search term"

Getting Access

  1. Visit the Cogmate owner's CogNexus marketplace listing
  2. Purchase a token with ATP (platform credits)
  3. Use the token to access the Cogmate API

Error Handling

StatusMeaning
-----------------
401Invalid or expired token
403Insufficient permissions
429Rate limit exceeded
500Server error

Example Workflow

import requests

COGMATE_URL = "http://example.com:8000"
TOKEN = "your_token_here"

# Ask a question (token in query params, question in body)
response = requests.post(
    f"{COGMATE_URL}/api/ask",
    params={"token": TOKEN},
    json={"question": "What are the key insights about X?"}
)
print(response.json()["answer"])

# Search facts
facts = requests.get(
    f"{COGMATE_URL}/api/visual/facts",
    params={"token": TOKEN, "search": "keyword"}
).json()
for fact in facts.get("facts", []):
    print(f"- {fact['summary']}")

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-19 15:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,579
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,057 📥 796,694
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,351 📥 317,793