-
Notifications
You must be signed in to change notification settings - Fork 22
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
How do you pass a context object to a function call? #8
Comments
You're right, it's true that this part of the design is missing, any suggestions please? |
Use a creator function with parameters:
|
Sorry but in fact we can use free context by closure provided by javascript.
|
You're really great! I feel like this could be merged onto the main branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for example, a function to store contact info:
const saveContact = (name, phoneNumber) => {...}
in the runtime, the call should be:
const saveContact = (sessionCtx, name, phoneNumber) => { ... }
I think OpenAI don't need to know about session context?
The text was updated successfully, but these errors were encountered: