-
Notifications
You must be signed in to change notification settings - Fork 95
Refactor/chat agent code refactor #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
examples/chatAgent.ts
Outdated
|
|
||
| // Environment check | ||
| const apiKey = process.env.GAME_API_KEY; | ||
| const apiKey = "API_KEY"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this "API_KEY" come from?
it should be from .env right?
README.md
Outdated
|
|
||
| // Start a conversation | ||
| const response = await agent.chat("What ingredients do we have available?"); | ||
| console.log(response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log
| args: convoResponse.function_call.args, | ||
| }); | ||
| const result = await fnToCall.execute( | ||
| convoResponse.function_call.args, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ermm is this console.log needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is needed


No description provided.