1:1 MoonBit mirror of the LodyAI acp-extension-core contract (tool vocabulary, _meta.lody DTOs, _lody/ methods, capabilities)
| 项 | 值 |
|---|---|
| Mirrored upstream | LodyAI/acp-extension-core (default branch main) |
| Upstream commit | 23c792b910a903b74601e346473827106f991715 (merge of PR #1, 2026-08-21) |
| Upstream package version | acp-extension-core@0.1.0 → this module versions 0.1.0 |
| Local spec translation | docs/acp/lody-contracts.md (authoritative for every field) |
pub(all) struct LodyActivityMeta {
version : Int
kind : LodyActivityKind
automatic : Bool?
used_tokens_before : Int?
used_tokens_after : Int?
duration_ms : Int64?
failure_reason : String?
} derive(Eq, Debug)pub(all) struct LodyElicitationMeta {
version : Int
auto_resolve_after_seconds : Int64?
auto_resolve_at_epoch_seconds : Int64?
custom_answer_for : String?
secret : Bool?
preview : String?
questions : Array[LodyElicitationQuestion]?
answers : Map[String, LodyElicitationAnswer]?
} derive(Eq, Debug)pub(all) struct LodyElicitationQuestion {
id : String?
question : String
header : String
options : Array[LodyElicitationOption]
multi_select : Bool
allow_custom_answer : Bool?
is_secret : Bool?
} derive(Eq, Debug)pub(all) struct LodyExtensionCapabilities {
usage : LodyVersionOneCapability?
rate_limits : LodyRateLimitsCapability?
fork_at_turn : LodyVersionOneCapability?
steering : LodySteeringCapability?
tasks : LodyTaskCapability?
subagents : LodySubagentCapability?
goal : LodyGoalCapability?
compaction : LodyVersionOneCapability?
session_history : LodyVersionOneCapability?
} derive(Eq, Debug)pub(all) struct LodyGoalCapability {
version : Int
actions : Array[LodyGoalAction]
} derive(Eq, Debug)pub(all) enum LodyGoalPresence {
GoalAbsent
GoalCleared
GoalSet(LodyGoalSnapshot)
} derive(Eq, Debug)pub(all) struct LodyGoalSnapshot {
objective : String
status : LodyGoalStatus
iterations : Int?
last_reason : String?
created_at_epoch_seconds : Int64?
updated_at_epoch_seconds : Int64?
token_budget : Int?
tokens_used : Int?
time_used_seconds : Int64?
} derive(Eq, Debug)pub(all) struct LodyNotice {
level : LodyNoticeLevel
message : String
source : String?
} derive(Eq, Debug)fn LodySessionHistoryReadRequest::from_json(raw : Json) -> Result[LodySessionHistoryReadRequest, String]fn LodySessionHistoryReadResponse::from_json(raw : Json) -> Result[LodySessionHistoryReadResponse, String]pub(all) struct LodySessionMeta {
turn_id : String?
fork_at_turn : LodyForkAtTurn?
steer : LodySteerPromptMeta?
tool_name : String?
activity : LodyActivityMeta?
task : LodyTaskMeta?
goal : LodyGoalPresence
notice : LodyNotice?
title_source : LodyTitleSource?
message_phase : LodyMessagePhase?
} derive(Eq, Debug)pub(all) struct LodySteeringCapability {
version : Int
transport : LodySteeringTransport
upstream_turn : LodySteeringUpstreamTurn
config_policy : LodySteeringConfigPolicy
} derive(Eq, Debug)pub(all) struct LodySubagentTask {
task_id : String
description : String
status : LodySubagentStatus
agent_id : String?
subagent_type : String?
model_id : String?
thinking_effort : String?
started_at_epoch_seconds : Int64
ended_at_epoch_seconds : Int64?
stop_reason : String?
} derive(Eq, Debug)pub(all) struct LodyTaskMeta {
version : Int
task_id : String
kind : LodyTaskKind
status : LodyTaskStatus
description : String?
actor : String?
parent_task_id : String?
parent_tool_call_id : String?
model_id : String?
started_at_epoch_seconds : Int64?
ended_at_epoch_seconds : Int64?
summary : String?
error : String?
last_tool_name : String?
usage : LodyTaskUsage?
skip_transcript : Bool?
} derive(Eq, Debug)pub(all) struct RateLimit {
limit_id : String
scope : RateLimitScope
limit_name : String?
plan_name : String?
windows : Array[RateLimitWindow]
wallet : RateLimitWallet?
} derive(Eq, Debug)pub(all) struct SessionUsageUpdate {
session_id : String
usage : ModelUsage
model_usage : Map[String, ModelUsage]?
} derive(Eq, Debug)let LODY_TOOL_CRON_CREATE : Stringlet LODY_TOOL_CRON_DELETE : Stringlet LODY_TOOL_CRON_LIST : Stringlet LODY_TOOL_IMAGE_GENERATION : Stringlet LODY_TOOL_SCHEDULE_WAKEUP : Stringfn is_lody_tool_name(name : String) -> Boolfn normalize_lody_extension_method(method_name : String) -> StringInstall
Download zip1:1 MoonBit mirror of the LodyAI acp-extension-core contract (tool vocabulary, _meta.lody DTOs, _lody/ methods, capabilities)