Skip to content

Commit

Permalink
from @aws/multi to multi
Browse files Browse the repository at this point in the history
  • Loading branch information
brnaba-aws committed Jul 23, 2024
1 parent c160757 commit cd7d2fd
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ Check out our documentation for comprehensive guides on setting up and using the
### Quick Install

```bash
npm install @aws/multi-agent-orchestrator
npm install multi-agent-orchestrator
```

### Usage

The following example demonstrates how to use the Multi-Agent Orchestrator with two different types of agents: a Bedrock LLM Agent with Converse API support and a Lex Bot Agent. This showcases the flexibility of the system in integrating various AI services.

```typescript
import { MultiAgentOrchestrator, BedrockLLMAgent, LexBotAgent } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator, BedrockLLMAgent, LexBotAgent } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();

Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/advanced-features/math-tool-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const mathAgentToolDefinition = [
B. Tool Handler

```typescript
import { ConversationMessage, ParticipantRole } from "@aws/multi-agent-orchestrator";
import { ConversationMessage, ParticipantRole } from "multi-agent-orchestrator";

export async function mathToolHandler(response, conversation: ConversationMessage[]) {
const responseContentBlocks = response.content as any[];
Expand Down Expand Up @@ -247,7 +247,7 @@ Now that we have our math tool defined and the code above in a file called `weat


```typescript
import { BedrockLLMAgent } from '@aws/multi-agent-orchestrator';
import { BedrockLLMAgent } from 'multi-agent-orchestrator';
import { mathAgentToolDefinition, mathToolHandler } from './mathTools';

const MATH_PROMPT = `
Expand Down Expand Up @@ -279,7 +279,7 @@ mathAgent.setSystemPrompt(MATH_PROMPT);
Now we can add our math agent to the Multi-Agent Orchestrator:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();

Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/advanced-features/weather-tool-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ C. Tool Handler

```typescript

import { ConversationMessage, ParticipantRole } from "@aws/multi-agent-orchestrator";
import { ConversationMessage, ParticipantRole } from "multi-agent-orchestrator";


export async function weatherToolHandler(response, conversation: ConversationMessage[]) {
Expand Down Expand Up @@ -184,7 +184,7 @@ Now that we have our weather tool defined and the code above in a file called `w
```typescript
// weatherAgent.ts

import { BedrockLLMAgent } from '@aws/multi-agent-orchestrator';
import { BedrockLLMAgent } from 'multi-agent-orchestrator';
import { weatherToolDescription, weatherToolHandler, WEATHER_PROMPT } from './weatherTool';

const weatherAgent = new BedrockLLMAgent({
Expand Down Expand Up @@ -215,7 +215,7 @@ Now we can add our weather agent to the Multi-Agent Orchestrator:

```typescript

import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();

Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/agents/built-in/amazon-bedrock-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `AmazonBedrockAgent` is a specialized agent class in the Multi-Agent Orchest
To create a new `AmazonBedrockAgent` with only the required parameters, use the following code:

```typescript
import { AmazonBedrockAgent } from '@aws/multi-agent-orchestrator';
import { AmazonBedrockAgent } from 'multi-agent-orchestrator';


const agent = new AmazonBedrockAgent({
Expand All @@ -38,7 +38,7 @@ To integrate the LexBotAgent into your Multi-Agent Orchestrator, follow these st
1. First, ensure you have created an instance of the orchestrator:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();
```
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/agents/built-in/bedrock-llm-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This agent can handle a wide range of processing tasks, making it suitable for d
To create a new `BedrockLLMAgent` with only the required parameters, use the following code:

```typescript
import { BedrockLLMAgent } from '@aws/multi-agent-orchestrator';
import { BedrockLLMAgent } from 'multi-agent-orchestrator';


const agent = new BedrockLLMAgent({
Expand All @@ -46,7 +46,7 @@ For more complex use cases, you can create a BedrockLLMAgent with all available
To create a new `BedrockLLMAgent` with all optional parameters, use the following code:

```typescript
import { BedrockLLMAgent, BedrockLLMAgentOptions } from '@aws/multi-agent-orchestrator';
import { BedrockLLMAgent, BedrockLLMAgentOptions } from 'multi-agent-orchestrator';
import { Retriever } from '../retrievers/retriever';

const options: BedrockLLMAgentOptions = {
Expand Down Expand Up @@ -134,7 +134,7 @@ To integrate the LexBotAgent into your Multi-Agent Orchestrator, follow these st
1. First, ensure you have created an instance of the orchestrator:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();
```
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/agents/built-in/lambda-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `LambdaAgent` is a versatile agent class in the Multi-Agent Orchestrator Sys


```typescript
import { LambdaAgent } from '@aws/multi-agent-orchestrator';
import { LambdaAgent } from 'multi-agent-orchestrator';

const myCustomInputPayloadEncoder = (input, chatHistory, userId, sessionId, additionalParams) => {
return JSON.stringify({
Expand Down Expand Up @@ -66,7 +66,7 @@ To integrate the LambdaAgent into your Multi-Agent Orchestrator System, follow t
1. First, ensure you have created an instance of the orchestrator:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/agents/built-in/lex-bot-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To integrate the LexBotAgent into your Multi-Agent Orchestrator, follow these st
1. First, ensure you have created an instance of the orchestrator:

```typescript
import { MultiAgentOrchestrator } from '@aws/multi-agent-orchestrator';
import { MultiAgentOrchestrator } from 'multi-agent-orchestrator';

const orchestrator = new MultiAgentOrchestrator();
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/agents/built-in/openai-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The `setSystemPrompt` method allows you to dynamically change the agent's behavi
Once you've created an OpenAIAgent, you can add it to the Multi-Agent Orchestrator and use it to process requests:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();
orchestrator.addAgent(agent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The Anthropic Classifier extends the abstract `Classifier` class and uses the An
To use the AnthropicClassifier, you need to create an instance with your Anthropic API key and pass it to the Multi-Agent Orchestrator:

```typescript
import { AnthropicClassifier } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { AnthropicClassifier } from "multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const anthropicClassifier = new AnthropicClassifier({
apiKey: 'your-anthropic-api-key'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The BedrockClassifier extends the abstract `Classifier` class and uses Amazon Be
By default, the Multi-Agent Orchestrator uses the BedrockClassifier. You don't need to do anything special to use it:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator();
```
Expand All @@ -34,7 +34,7 @@ const orchestrator = new MultiAgentOrchestrator();
You can customize the BedrockClassifier by creating an instance with specific options:

```typescript
import { BedrockClassifier, MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { BedrockClassifier, MultiAgentOrchestrator } from "multi-agent-orchestrator";

const customBedrockClassifier = new BedrockClassifier({
modelId: 'anthropic.claude-v2',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/classifiers/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const orchestrator = new MultiAgentOrchestrator();
To use the Anthropic Classifier, you can pass it as an option:

```typescript
import { AnthropicClassifier } from "@aws/multi-agent-orchestrator";
import { AnthropicClassifier } from "multi-agent-orchestrator";

const anthropicClassifier = new AnthropicClassifier({
apiKey: 'your-anthropic-api-key'
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/deployment/aws-lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Deploying the Multi-Agent Orchestrator System to AWS Lambda allows you to run yo

```typescript
import { Logger } from "@aws-lambda-powertools/logger";
import { OrchestratorConfig, MultiAgentOrchestrator, BedrockLLMAgent } from "@aws/multi-agent-orchestrator";
import { OrchestratorConfig, MultiAgentOrchestrator, BedrockLLMAgent } from "multi-agent-orchestrator";
import { APIGatewayProxyEventV2, Context } from "aws-lambda";

const logger = new Logger();
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/general/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To help you kickstart with the Multi-Agent Orchestrator framework, we'll walk y
1. Install the Multi-Agent Orchestrator framework in your nodejs project.

```bash
npm install @aws/multi-agent-orchestrator
npm install multi-agent-orchestrator
```


Expand All @@ -30,7 +30,7 @@ npm install @aws/multi-agent-orchestrator
3. Create an Orchestrator

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";
const orchestrator = new MultiAgentOrchestrator({
config: {
logAgentConversation: true,
Expand All @@ -44,7 +44,7 @@ const orchestrator = new MultiAgentOrchestrator({

```typescript

import { BedrockLLMAgent } from "@aws/multi-agent-orchestrator";
import { BedrockLLMAgent } from "multi-agent-orchestrator";


orchestrator.addAgent(
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/orchestrator/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Multi-Agent Orchestrator is the central component of the framework, responsi
To create a new Orchestrator instance, you can use the `MultiAgentOrchestrator` class:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";

const orchestrator = new MultiAgentOrchestrator(options);
```
Expand Down Expand Up @@ -40,8 +40,8 @@ The Orchestrator accepts an `OrchestratorOptions` object during initialization.
Here's an example that demonstrates how to initialize the Orchestrator with all available options:

```typescript
import { MultiAgentOrchestrator } from "@aws/multi-agent-orchestrator";
import { DynamoDBChatStorage } from "@aws/multi-agent-orchestrator/storage";
import { MultiAgentOrchestrator } from "multi-agent-orchestrator";
import { DynamoDBChatStorage } from "multi-agent-orchestrator/storage";
import { CustomClassifier } from "./custom-classifier";
import { CustomLogger } from "./custom-logger";

Expand Down

0 comments on commit cd7d2fd

Please sign in to comment.