Macros§
- agent
- 创建一个代理定义,参考Mastra的Agent API设计
- eval_
suite - 创建一个评估套件,参考Mastra的Eval框架
- lumos
- 配置整个Lumos应用,参考Mastra的应用级API
- lumos_
execute_ tool - A macro for quick tool execution setup
- mcp_
client - 创建一个MCP客户端配置,参考Mastra的MCP支持
- rag_
pipeline - 创建一个RAG管道,参考Mastra的RAG原语API设计
- tool_
nom - 基于nom的tool!宏 - 新的语法设计
- tools
- 一次性定义多个工具,参考Mastra的工具API设计
- workflow
- 创建一个工作流定义,参考Mastra的工作流API设计
Attribute Macros§
- agent_
attr - Macro for defining an agent with tools in a simplified way
- tool
- Macro for defining a tool in a simplified way
Derive Macros§
- LlmAdapter
- A convenient derive macro for defining a model adapter