Skip to content

Conversation

@TomeHirata
Copy link
Collaborator

Add the newly added APIs to the cheatsheet.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the DSPy cheatsheet to include recently added APIs and corrects a header capitalization.

  • Renames the dspy.ReACT section to dspy.ReAct
  • Adds examples for the new dspy.CodeAct and dspy.Parallel APIs
  • Introduces a “Tools and Utilities” section with dspy.Tool, dspy.streamify, dspy.asyncify, usage tracking, and cache configuration
Comments suppressed due to low confidence (3)

docs/docs/cheatsheet.md:440

  • [nitpick] Section header track_usage is inconsistent with other DSPy API headings. Consider renaming to ### dspy.settings.configure(track_usage=True) or prefixing with dspy. for clarity.
### track_usage

docs/docs/cheatsheet.md:73

  • [nitpick] It would help readers to include a one-sentence description of what dspy.CodeAct does before the code block to improve context and clarity.
### dspy.CodeAct

docs/docs/cheatsheet.md:436

  • Add import asyncio at the top of the dspy.asyncify example to avoid a NameError when calling asyncio.run.
asyncio.run(dspy_program(question="What is DSPy"))

Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

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

Code LGTM, but one question for @okhat: do we want to keep maintaining this cheat sheet for long term?

@okhat okhat merged commit 6bac239 into stanfordnlp:main Jul 18, 2025
12 checks 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.

3 participants