toughyear / generative-agents Goto Github PK
View Code? Open in Web Editor NEWA Framework for working with Generative Agents powered by Large Language Models
Home Page: https://multimode.run/
License: MIT License
A Framework for working with Generative Agents powered by Large Language Models
Home Page: https://multimode.run/
License: MIT License
cloned the repo.
in example/phaser
npm install
added 1307 packages, and audited 1320 packages in 22s
Failed to compile.
Module not found: Error: Can't resolve 'generative-agents' in '\generative-agents\examples\phaser\src'
ERROR in ./src/Game.tsx 7:0-74
Module not found: Error: Can't resolve 'generative-agents' in '\generative-agents\examples\phaser\src'
ERROR in ./src/pages/test.tsx 6:0-55
Module not found: Error: Can't resolve 'generative-agents' in '\generative-agents\examples\phaser\src\pages'
ERROR in ./src/phaserClasses/AgentCharacter.ts 5:0-48
Module not found: Error: Can't resolve 'generative-agents' in '\generative-agents\examples\phaser\src\phaserClasses'
webpack compiled with 3 errors
ERROR in src/AgentChat.tsx:2:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useState } from "react";
2 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 | import { XCircle } from "lucide-react";
4 |
5 | type AgentChatProps = {
ERROR in src/AgentDisplay.tsx:2:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | // AgentDisplay.tsx
2 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 | import React, { useEffect, useState } from "react";
4 |
5 | type AgentDisplayProps = {
ERROR in src/data/world.ts:1:27
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import { Rectangle } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
2 |
3 | export const locations: Rectangle[] = [
4 | {
ERROR in src/Game.tsx:3:55
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useRef, useState } from "react";
2 | import PhaserGame from "./phaserGame";
3 | import { Agent, AgentEngine, buildSpatialWorld } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
4 |
5 | import { agentsData } from "./data/agents";
6 | import AgentDisplay from "./AgentDisplay";
ERROR in src/pages/test.tsx:2:36
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useRef } from "react";
2 | import { Agent, AgentEngine } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 |
4 | interface Props {
5 | openaiKey: string;
ERROR in src/phaserClasses/AgentCharacter.ts:3:36
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import Phaser from "phaser";
2 | import BubbleText from "./BubbleText";
3 | import { Agent, AgentEvents } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
4 | import { locations } from "../data/world";
5 |
6 | class AgentCharacter extends Phaser.GameObjects.Sprite {
ERROR in src/phaserClasses/AgentCharacter.ts:126:13
TS7006: Parameter 'word' implicitly has an 'any' type.
124 | return this.agent.id
125 | .split("_")
126 | .map((word) => word[0])
| ^^^^
127 | .join("")
128 | .toUpperCase();
129 | }
ERROR in src/phaserGame.tsx:4:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
Failed to compile.
Module not found: Error: Can't resolve 'generative-agents' in 'C:\Users\erikc\source\repos\generative-agents\examples\phaser\src'
ERROR in ./src/Game.tsx 7:0-74
Module not found: Error: Can't resolve 'generative-agents' in 'C:\Users\erikc\source\repos\generative-agents\examples\phaser\src'
ERROR in ./src/pages/test.tsx 6:0-55
Module not found: Error: Can't resolve 'generative-agents' in 'C:\Users\erikc\source\repos\generative-agents\examples\phaser\src\pages'
ERROR in ./src/phaserClasses/AgentCharacter.ts 5:0-48
Module not found: Error: Can't resolve 'generative-agents' in 'C:\Users\erikc\source\repos\generative-agents\examples\phaser\src\phaserClasses'
webpack compiled with 3 errors
ERROR in src/AgentChat.tsx:2:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useState } from "react";
2 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 | import { XCircle } from "lucide-react";
4 |
5 | type AgentChatProps = {
ERROR in src/AgentDisplay.tsx:2:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | // AgentDisplay.tsx
2 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 | import React, { useEffect, useState } from "react";
4 |
5 | type AgentDisplayProps = {
ERROR in src/data/world.ts:1:27
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import { Rectangle } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
2 |
3 | export const locations: Rectangle[] = [
4 | {
ERROR in src/Game.tsx:3:55
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useRef, useState } from "react";
2 | import PhaserGame from "./phaserGame";
3 | import { Agent, AgentEngine, buildSpatialWorld } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
4 |
5 | import { agentsData } from "./data/agents";
6 | import AgentDisplay from "./AgentDisplay";
ERROR in src/pages/test.tsx:2:36
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import React, { useRef } from "react";
2 | import { Agent, AgentEngine } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 |
4 | interface Props {
5 | openaiKey: string;
ERROR in src/phaserClasses/AgentCharacter.ts:3:36
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import Phaser from "phaser";
2 | import BubbleText from "./BubbleText";
3 | import { Agent, AgentEvents } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
4 | import { locations } from "../data/world";
5 |
6 | class AgentCharacter extends Phaser.GameObjects.Sprite {
ERROR in src/phaserClasses/AgentCharacter.ts:126:13
TS7006: Parameter 'word' implicitly has an 'any' type.
124 | return this.agent.id
125 | .split("_")
126 | .map((word) => word[0])
| ^^^^
127 | .join("")
128 | .toUpperCase();
129 | }
ERROR in src/phaserGame.tsx:4:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
2 | import Phaser from "phaser";
3 | import { MainScene } from "./scenes/MainScene";
4 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
5 |
6 | interface Props {
7 | agents: Agent[];
ERROR in src/scenes/MainScene.ts:2:23
TS2307: Cannot find module 'generative-agents' or its corresponding type declarations.
1 | import Phaser from "phaser";
2 | import { Agent } from "generative-agents";
| ^^^^^^^^^^^^^^^^^^^
3 | import AgentCharacter from "../phaserClasses/AgentCharacter";
4 | import { agentsData } from "../data/agents";
5 | import { locations } from "../data/world";
Thanks for your efforts in your project sharing with us who like me lovely the Generative Agents.
Now, this project working fine from my local using my local LLM Vicuna-7b powered.
So, do you have any plans to involve the LangChain project? If so, the agents can do some real work, like create Website HTML, etc.
So, we can create one agent that it's job/role is to create HTML. when we try to ask the agent, 'what a u doing?' the Agent can answer us, it is working, and focus to create the real HTML page.
What do you think? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.