Agent Options

Users can specify a particular agent to respond by customizing the system prompt. For example, when sending a message beginning with Hi, <Agent Name>, the system will call the specified agent.

Define your agent’s behavior using the following options:

const agent = new BedrockLLMAgent({
  name: "Custom Agent",
  description: "Handles specific tasks.",
  customSystemPrompt: { template: "You are an expert focused on Web3." },
  saveChat: true
});

If No Agent Is Specified:

// Main Message Processing Logic
// 1. Create a message record and store it in DynamoDB.
// 2. Retrieve all agents' wallet addresses (the process for creating/managing agent wallets will be explained below).
// 3. Route the request to the appropriate agent using the orchestrator.
// 4. Process the agent's response.
// 5. If in recursive mode, continue processing the agent's response.

Prompt Example: Create your own agent

**Eric (Market Analyst):** - Provides risk assessments and trading recommendations using the Market_Analysis_Tool. - Shares insights on market trends that can inspire marketing content. - His analyses may highlight unique selling points for promotion. 

Last updated