Skip to content

Conversation

pokey
Copy link
Contributor

@pokey pokey commented Oct 20, 2025

@changeset-bot
Copy link

changeset-bot bot commented Oct 20, 2025

⚠️ No Changeset found

Latest commit: a59af92

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +142 to +149
description: `
Schedule calendar events using natural language.

Use this when the user wants to create, modify, or check calendar appointments.
Handles date/time parsing, availability checking, and event creation.

Input: Natural language scheduling request (e.g., 'meeting with design team next Tuesday at 2pm')
`.trim(),
Copy link
Member

Choose a reason for hiding this comment

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

shower thought: we should have some kind of prompt template literal that dedents + trims

  description: prompt`
    Schedule calendar events using natural language.

    Use this when the user wants to create, modify, or check calendar appointments.
    Handles date/time parsing, availability checking, and event creation.

    Input: Natural language scheduling request (e.g., 'meeting with design team next Tuesday at 2pm')
  `,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

huh that's an interesting idea. I think we'd want interpolation to work like regular string interpolation, which should be easy to do?

Copy link
Member

Choose a reason for hiding this comment

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

yeah that should just work out of the box! This is moreso just me not wanting to do weird dedenting to properly format prompts in my code 😁

// Customize context received by sub-agent
// Access full thread messages from the config
const currentMessages =
getCurrentTaskInput<InternalAgentState>(config).messages;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As mentioned on docs PR, this is an error because it appears InternalAgentState is not exported from langchain so I didn't import it at the top

Copy link
Member

Choose a reason for hiding this comment

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

Hmm maybe we should change it then

Copy link
Member

Choose a reason for hiding this comment

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

updated

@hntrl hntrl merged commit 3f750bc into langchain-ai:main Oct 22, 2025
8 checks passed
lnhsingh added a commit to langchain-ai/docs that referenced this pull request Oct 22, 2025
Just translates the Python version of the supervisor tutorial to js. 

- Depends on langchain-ai/langchainjs#9228
- See also langchain-ai/langchainjs#9235

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Lauren Hirata Singh <[email protected]>
mdrxy pushed a commit to anjaliratnam-msft/docs that referenced this pull request Oct 22, 2025
Just translates the Python version of the supervisor tutorial to js. 

- Depends on langchain-ai/langchainjs#9228
- See also langchain-ai/langchainjs#9235

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Lauren Hirata Singh <[email protected]>
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