Skip to content

Change agent architecture#4

Open
rishabhjaiz wants to merge 1 commit intomainfrom
rishabh/change-core
Open

Change agent architecture#4
rishabhjaiz wants to merge 1 commit intomainfrom
rishabh/change-core

Conversation

@rishabhjaiz
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Jun 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
generative-agents-demo ❌ Failed (Inspect) Jun 21, 2023 0:58am

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncommit

@@ -13,7 +13,6 @@

# misc
.DS_Store
.env
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

"Hi, I am Dexter a passionate frontend developer who has a good eye for design. In my free time I listen to a lot of music and play football. Right now I am working on taking my life to the next level."
);

// const y = async () => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete >> comment out

}: AgentInterface) => {
const [chat, setChat] = useState(false);

const agent = new Agent(id, engine, description);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://sdk.vercel.ai/docs

we can probably use this

imageSrc:
"https://i0.wp.com/www.smartprix.com/bytes/wp-content/uploads/2022/11/Naruto.jpg?fit=1280%2C720&ssl=1",
description:
"Naruto Runs Taiki seafood restaurant with his wife Susan. He has a daughter Lucy and a son Mike. Goal of naruto is to create a new speciality dish for restaurant and getting a new chef. Naruto is extemely curious, Adventurous, and optimistic. Naruto some day wants to be part of the bollywood industry.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create believable characters that people already know so that they can test the steerability.

this.engine = engine;

// Check everytime if the memory with the associated agent id exists in the database or localstorage for now.
this.memoryStream = localStorage.getItem(id)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the item key should be more indicative when stored in local storage and not just id. Something like -agent_234524

for DB it makes sense since it will be in a labelled column (agent_id) but this is not true for localdb,

import { getModelInstance } from "../utils/getModelInstance";
import { getModelResponse } from "../utils/getModelResponse";

/** THINK: Should engine be a base class and OPEN_AI and claude extend this class */
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants