GoogleBooksAPIWrapper#
- class langchain_community.utilities.google_books.GoogleBooksAPIWrapper[source]#
Bases:
BaseModel
Wrapper around Google Books API.
To use, you should have a Google Books API key available. This wrapper will use the Google Books API to conduct searches and fetch books based on a query passed in by the agents. By default, it will return the top-k results.
The response for each book will contain the book title, author name, summary, and a source link.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param google_books_api_key: str | None = None#
- param top_k_results: int = 5#