docs.rs failed to build miyabi-agents-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
miyabi-agents-0.1.1
miyabi-agents
Note: This crate is deprecated in favor of specialized agent crates:
miyabi-agent-coordinatormiyabi-agent-codegenmiyabi-agent-reviewmiyabi-agent-workflowmiyabi-agent-businessmiyabi-agent-integrations
This crate now serves as a unified re-export layer for backward compatibility.
Features
Agent Lifecycle Hooks
The hooks system allows you to extend agent behavior with lifecycle events:
- Pre-Execute: Validate environment, check prerequisites
- Post-Execute: Log results, trigger actions, index knowledge
- On Error: Handle failures, trigger alerts
Built-in Hooks
EnvironmentCheckHook: Validate required environment variablesMetricsHook: Record execution metrics usingtracingAuditLogHook: Append execution details to.ai/logs
Auto-Indexing (Optional)
When the knowledge-integration feature is enabled, AuditLogHook can automatically index agent execution logs into a vector database for future knowledge retrieval.
use ;
use KnowledgeConfig;
let config = from_file?;
let hook = new.with_auto_index;
See: Hook Integration Guide for complete documentation.
Usage
Basic Hook Usage
use ;
use CoordinatorAgent;
use ;
async
With Auto-Indexing
use ;
use KnowledgeConfig;
// Load configuration
let knowledge_config = from_file?;
// Create hooked agent with auto-indexing
let mut hooked_agent = new;
hooked_agent.register_hook;
// Execute - logs will be auto-indexed in the background
let result = hooked_agent.execute.await?;
Features
default: Standard hooks (Metrics, Environment Check, Audit Log)knowledge-integration: Enable auto-indexing withmiyabi-knowledge
Documentation
- Hook Integration Guide - Complete auto-indexing setup
- API Documentation - Rust API reference
- Knowledge Management - Vector DB setup
Migration from Legacy Agents
If you're using the legacy agent implementations in this crate, please migrate to the specialized crates:
// Old (deprecated)
use CoordinatorAgent;
// New (recommended)
use CoordinatorAgent;
License
See LICENSE in the repository root.