Skip to content

[UPSTREAM-SYNC] Add the LLMResponse struct to hold response information #135

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

Closed
wants to merge 2 commits into from

Conversation

shmuelk
Copy link
Collaborator

@shmuelk shmuelk commented May 7, 2025

Added a LLMResponse struct to hold select information from the response. A reference to an instance of this struct has been added to the SchedulingContext struct.

The SchedulingContext struct is used in both request and response plugin handling.

During request handling the LLMRequest field will have a value and the LLMResponse field will be nill.
During response handling the LLMRequest field will be nil and the LLMResponse field will have a value.

This is a step to better PostResponse plugin support.

@shmuelk shmuelk requested review from shaneutt and elevran May 7, 2025 16:02
Body string

// IsStreaming indicates whether or not the response is being streamed by the model
IsSreaming bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
IsSreaming bool
IsStreaming bool

@shmuelk
Copy link
Collaborator Author

shmuelk commented May 8, 2025

Recreating this

@shmuelk shmuelk closed this May 8, 2025
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