Skip to content
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

Implement createReActAgent #169

Merged
merged 10 commits into from
May 19, 2024
Merged

Implement createReActAgent #169

merged 10 commits into from
May 19, 2024

Conversation

hinthornw
Copy link
Contributor

No description provided.

@@ -43,7 +43,7 @@
"devDependencies": {
"@jest/globals": "^29.5.0",
"@langchain/community": "^0.0.43",
"@langchain/openai": "^0.0.23",
"@langchain/openai": "latest",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to get the bindTools for testing


const callModel = async (state: AgentState) => {
const { messages } = state;
// TODO: Stream
Copy link
Contributor Author

@hinthornw hinthornw May 18, 2024

Choose a reason for hiding this comment

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

If we wanted to support token-wise streaming via streamEvents, i think i need to actually stream here and concatenate, though i need to check. been a while since ir eviewed the js chat model implementations

Copy link
Contributor

Choose a reason for hiding this comment

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

Because in js we don't auto promote invoke to stream like we do in py?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

afaict

langgraph/src/prebuilt/react_agent_executor.ts Outdated Show resolved Hide resolved

const callModel = async (state: AgentState) => {
const { messages } = state;
// TODO: Stream
Copy link
Contributor

Choose a reason for hiding this comment

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

Because in js we don't auto promote invoke to stream like we do in py?

@hinthornw hinthornw merged commit 7190937 into main May 19, 2024
9 checks passed
@hinthornw hinthornw deleted the wfh/cra branch May 19, 2024 04:17
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.

None yet

2 participants