Skip to content

Conversation

@jxx016
Copy link
Contributor

@jxx016 jxx016 commented Mar 11, 2025

No description provided.


// Environment check
const apiKey = process.env.GAME_API_KEY;
const apiKey = "API_KEY";
Copy link
Contributor

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?

@jxx016
Copy link
Contributor Author

jxx016 commented Mar 17, 2025

Adding screenshots to the 2 new examples using chatAgent.

Screenshot 2025-03-14 at 10 21 55 PM

Screenshot 2025-03-14 at 10 34 01 PM

README.md Outdated

// Start a conversation
const response = await agent.chat("What ingredients do we have available?");
console.log(response);
Copy link
Contributor

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,
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this one is needed

@jxx016 jxx016 merged commit 56e54c9 into main Mar 17, 2025
1 check passed
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.

4 participants