Code Monkey home page Code Monkey logo

generative-agents's People

Contributors

toughyear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

generative-agents's Issues

cant resolve Generative agent

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";

Any plan to involve the LangChain?

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? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.