Skip to content

feat: expose getAllElements from context, for debugging - #1710

Closed
mnutt wants to merge 1 commit into
CopilotKit:mainfrom
mnutt:expose-all-context
Closed

mnutt wants to merge 1 commit into
CopilotKit:mainfrom
mnutt:expose-all-context

Conversation

@mnutt

@mnutt mnutt commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

This exposes a new getAllElements() function from the copilot provider. This allows an inspection tool to see the entire context (what has been stored via useCopilotReadable, etc).

Related PRs and Issues

  • TODO

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation (the methods around this one were not documented so I didn't add any here, but could)

@changesets-bot-copilotkit

Copy link
Copy Markdown

⏭️ Changeset Not Required

Latest commit: 4f178e0

No changes in this PR affected the @copilitkit/* packages. Merging this PR will not cause a version bump for any packages.

Changeset is not required for this PR.

@vercel

vercel Bot commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

@mnutt is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

@mnutt

mnutt commented Apr 24, 2025

Copy link
Copy Markdown
Contributor Author

@tylerslaton

Copy link
Copy Markdown
Contributor

Hi @mnutt!

Thank you for all your contributions so far, the CopilotKit debugger looks awesome.

For this PR, could you help me understand the necessity of a new function for this context? I ask because I'm trying to determine if the information you needed was:

  1. Impossible to get, so you're making it possible
  2. Hard to get, so you're making it easiser.

That will help me drive a review here.

@mnutt

mnutt commented Apr 30, 2025

Copy link
Copy Markdown
Contributor Author

Hi @tylerslaton, my understanding is that it exposes some context not currently possible to access: I'm trying to retrieve data stored by useCopilotReadable(). I would get it like this. If there's an existing way (even if it's less than ideal) I'm happy to use that instead.

@tylerslaton

tylerslaton commented May 27, 2025 •

Copy link
Copy Markdown
Contributor

Hey @mnutt this got merged as a part of our community contributions for May 23rd, thank you!

#1868

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