Skip to content
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

feat: Support responseSchema in ChatFirebaseVertexAI #663

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

davidmigloz
Copy link
Owner

@davidmigloz davidmigloz commented Feb 28, 2025

Fixed some breaking changes they introduced in the first stable release.

Now you can provide a responseSchema for structured outputs:

final options = ChatFirebaseVertexAIOptions(
  //...
  responseSchema: {
    'type': 'object',
    'properties': {
      'answer': {
        'type': 'string',
        'description': 'The answer to the question being asked',
      },
      'sources': {
        'type': 'array',
        'items': {'type': 'string'},
        'description': 'The sources used to answer the question',
      },
    },
    'required': ['answer', 'sources'],
  },
);

@davidmigloz davidmigloz self-assigned this Feb 28, 2025
@davidmigloz davidmigloz added t:enhancement New feature or request p:langchain_firebase langchain_firebase package. labels Feb 28, 2025
@davidmigloz davidmigloz added this to the Next release milestone Feb 28, 2025
@davidmigloz davidmigloz changed the title refactor: Migrate firebase_vertexai dep to 1.4.0 feat: Support responseSchema in ChatFirebaseVertexAI Feb 28, 2025
@davidmigloz davidmigloz merged commit 4fca38c into main Feb 28, 2025
3 checks passed
@davidmigloz davidmigloz deleted the firebase_vertexai branch February 28, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:langchain_firebase langchain_firebase package. t:enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant