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

genai: add debug log for _function_utils.py #509

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nobu007
Copy link
Contributor

@nobu007 nobu007 commented Sep 22, 2024

PR Description

genai: add debug log for _function_utils.py

logger.debug

  • switch case branch info
  • schema details

Type

🧹 Refactoring
✅ Test

Note(optional)

$ export LOG_LEVEL=DEBUG
$ python /home/jinno/git/drill/gamebook/test/test_struct
ured_output_joke.py
DEBUG:langchain_google_genai._function_utils:_format_to_gapic_function_declaration BaseModel
DEBUG:langchain_google_genai._function_utils:_convert_pydantic_to_genai_function
  schema={'description': 'Joke to tell user.', 'properties': {'setup': {'description': 'question to set up a joke', 'title': 'Setup', 'type': 'string'}, 'punchline': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'answer to resolve the joke', 'title': 'Punchline'}}, 'required': ['setup'], 'title': 'Joke', 'type': 'object'}

@nobu007 nobu007 marked this pull request as draft September 22, 2024 15:04
@nobu007 nobu007 force-pushed the genai/add_debug_log2 branch from e17b576 to 920341c Compare October 12, 2024 08:08
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.

1 participant