feat(ai): AgentProtocol trait + MatrixAgentProtocol + OpenClawProtocol (#23) #101

Closed
charles wants to merge 5 commits from feat/23-agent-protocol into main
Owner

Résumé

  • Trait AgentProtocol (#[async_trait]) : agent_type(), get_capabilities(), get_status()
  • AgentCapabilities : streaming, canvas, tools, multi_turn, model
  • AgentStatus : Ready / Busy { since_ms } / Offline / Unknown
  • MatrixAgentProtocol : implémentation par défaut pour bots Matrix génériques
  • OpenClawProtocol : implémentation enrichie pour agents OpenClaw
  • OpenClawResponseParser : extrait les métadonnées du champ net.jacquin.openclaw dans les événements Matrix
  • OpenClawMeta : model, input_tokens, output_tokens, canvas_html, is_streaming, is_final
  • 3 tests unitaires

Closes #23

## Résumé - Trait `AgentProtocol` (#[async_trait]) : `agent_type()`, `get_capabilities()`, `get_status()` - `AgentCapabilities` : `streaming`, `canvas`, `tools`, `multi_turn`, `model` - `AgentStatus` : `Ready` / `Busy { since_ms }` / `Offline` / `Unknown` - `MatrixAgentProtocol` : implémentation par défaut pour bots Matrix génériques - `OpenClawProtocol` : implémentation enrichie pour agents OpenClaw - `OpenClawResponseParser` : extrait les métadonnées du champ `net.jacquin.openclaw` dans les événements Matrix - `OpenClawMeta` : `model`, `input_tokens`, `output_tokens`, `canvas_html`, `is_streaming`, `is_final` - 3 tests unitaires Closes #23
feat(ai): export protocol types (#23)
Some checks are pending
CI / cargo check (pull_request) Waiting to run
CI / cargo test (pull_request) Blocked by required conditions
CI / clippy + rustfmt (pull_request) Waiting to run
148a5bcfb6
feat(ai): AgentType + AgentInfo structs (#23)
Some checks are pending
CI / cargo check (pull_request) Waiting to run
CI / cargo test (pull_request) Blocked by required conditions
CI / clippy + rustfmt (pull_request) Waiting to run
8517d21450
feat(ai): AgentDetector stub for protocol branch (#23)
Some checks are pending
CI / cargo check (pull_request) Waiting to run
CI / cargo test (pull_request) Blocked by required conditions
CI / clippy + rustfmt (pull_request) Waiting to run
a228484e66
chore(ai): add dashmap + regex deps for AgentDetector (#23)
Some checks failed
CI / cargo check (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / clippy + rustfmt (pull_request) Has been cancelled
b9cac4ac3a
charles closed this pull request 2026-04-06 02:07:30 +00:00
Some checks are pending
CI / cargo check (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / clippy + rustfmt (pull_request) Has been cancelled
qa
Required

Pull request closed

Sign in to join this conversation.
No description provided.