replace === output parsing with MCP tools via rmcp
This commit is contained in:
parent
09259ee5fa
commit
9354837830
8 changed files with 761 additions and 437 deletions
21
src/types.rs
21
src/types.rs
|
|
@ -89,24 +89,3 @@ pub struct DaemonState {
|
|||
pub max_history: usize,
|
||||
}
|
||||
|
||||
pub enum ResponseTarget {
|
||||
Room(OwnedRoomId),
|
||||
Dm(OwnedUserId),
|
||||
}
|
||||
|
||||
/// One document within Claude's multi-doc output. Each doc has its own
|
||||
/// frontmatter; the daemon routes based on which fields are present.
|
||||
pub enum ClaudeDoc {
|
||||
/// A chat message to send.
|
||||
Message {
|
||||
target: ResponseTarget,
|
||||
body: String,
|
||||
},
|
||||
/// A reaction to a message. `target_id_arg` is the event id (possibly
|
||||
/// shortened) the agent saw in the prompt; daemon expands by prefix match.
|
||||
Reaction { target_id_arg: String, key: String },
|
||||
/// Agent's internal monologue. Not sent to chat. Logged to tracing.
|
||||
Thought(String),
|
||||
/// Explicit "do nothing for this slot". Useful as a placeholder.
|
||||
Skip,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue