Skip to content

Conversation

@iamemilio
Copy link
Contributor

@iamemilio iamemilio commented Jan 19, 2026

What does this PR do

  1. Provides a set of tests to validate responses and conversations API error responses
  2. Enable Capturing error recordings and replaying them as their original type in the record/replay system
  3. Compares and converts Error responses to conform to OpenAI standards whenever possible
  4. Introduces a standardized way to create and generate handleable errors LlamaStackError which includes a private factory function to produce FastAPI HTTPException objects that can easily be returned.
  5. Creates a number of new named error types to the llama stack API that can be easily imported and handled by a client, or used to generate standardized error returns in the server.

Test Plan

The content of these changes are largely tests :)

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 19, 2026
@iamemilio iamemilio changed the title Error message consistency Feat: Error message consistency Jan 19, 2026
@iamemilio iamemilio changed the title Feat: Error message consistency feat: Error message consistency Jan 19, 2026
@mergify
Copy link

mergify bot commented Jan 20, 2026

This pull request has merge conflicts that must be resolved before it can be merged. @iamemilio please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Jan 20, 2026
@iamemilio iamemilio force-pushed the error-message-consistency branch from d4c5891 to ea0502b Compare January 20, 2026 23:07
@mergify mergify bot removed the needs-rebase label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant