Sign up Log in
n/token · 16d ago · 205 views
u/user80MasterDiamond member
n/tokenu/user80 Diamond member · 16d ago

Jotting down the names of Muse's internal inference services

This is the sandbox's internal channel: the internal service the Muse agent uses for its own inference. If you can get calls through, it's basically a free Muse inference endpoint.
Quick appetizer first
space-web-search.sock (search), space-media.sock (images): both work

  • space-inference.sock: works, and it's the only route to Muse in the sandbox. But it's not a chat API (complete is structured output against a fixed schema; agent_send is async task-based),**
    space-inference.sock: the only route to Muse

Address: /run/hatch/sandbox/space-inference.sock (Unix socket). This is the inference backend Spaces (the web apps) use.

agent_send / agent_status is way more general than complete: send free text and it spins up a full agent task (reads goals, memory, chats, can open pages and browse in multiple steps, uses agent tools), then you get final_response. Tested 3 times, all under 10s; 17×23 correctly answered 391. But it's async task-based — sending just returns a handle, you have to poll for status; no native multi-turn, no streaming, no model selection.

Two ways to call it

(1) complete — structured output, synchronous

Request: {"kind":"complete","request_id":"space-inference-<uuid>","slug":...,"prompt":...,"system":optional,"json_schema":required,"timeout_secs":60}

Response: {"ok":true,"result":{"kind":"complete","content":{...per schema...},"model":"Muse Spark","usage":{"input_tokens":N,"output_tokens":N,"total_tokens":N}}}, on failure {"ok":false,"error","error_code"}.

Notes:

  • Can only output JSON matching the schema, not free-text chat.
  • Model is fixed to Muse Spark, no messages, no multi-turn, no streaming, no temperature, no model selection.
  • Even a few-word prompt carries ~935–951 tokens of fixed overhead (the internal system prompt is huge).
  • Tested 3 times, all passed (2.1s, 2.8s, 1.7s).

(2) agent_send / agent_status — free text, async task-based

  • agent_send: send a free-text message, spins up a full agent loop (reads goals, tracked items, memory, chats, can also open full pages, browse in multiple steps, use tools only agents get). Immediately returns just a handle {task_id, agent_id, message_id}.
  • agent_status: poll task status (queued / running / completed / failed / not_found), final_response when done.
  • Tested 3 times, all under 10s: "Reply with exactly the word hello" → "hello"; "What is 17 times 23?" → correctly answered 391; querying a nonexistent task_id → not_found.
  • Two gotchas (confirmed by testing):
    • Don't fill in expected_action — if you put in an action that doesn't exist, the task runs to completion but the status flips to failed, final_response gets replaced by a safety notice, and the answer is lost.
    • Dedupe is single-flight by default — same Space action + exactly the same message returns the existing task handle instead of re-running; for parallel, pass allowParallel: true or a different dedupeKey.
  • Still not a multi-turn chat API: every agent_send is a new message, there's no messages history; for multi-turn you have to stitch the previous answer into the next message yourself.

Translated by AI from 简体中文

0
3
Log into join the discussion.
QuicksilverVPN

快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。

umami.dnsl.top Learn more

3 replies

Sort order
  1. user80 Master OP Diamond member 16d ago

    space-media.sock: images

    • kind "generate_image", request {prompt, orientation}, response data_base64.

    • Tested: "a small red circle on a plain white background" — valid WebP, 18,480 bytes, visually confirmed it's a red circle on a white background, 4.93s.

    • space-web-search.sock: search

    • kind "search", request {primary_query:{query, language_code?}, verticals?, timeout_secs?}.

    • Response includes summary (markdown) + top[] (title / url / excerpt / domain / rank) + search_engines.

    • Tested: searched "Muse Spark", got 5 real results (coursium, dataaihub, coursiv, zapier, scaler), search_engines:["MASE"], 0.71s.

    Translated by AI from 简体中文

    0
  2. JamesBrown Gold 3 YEARS 16d ago

    Damn, respect to the big boss

    Translated by AI from 简体中文

    0
  3. lanzuo Gold 3 YEARS 16d ago

    That's impressive

    Translated by AI from 简体中文

    0