Skip to content

AttributeError: 'NoneType' object has no attribute 'required' #2891

Closed

Description

@aks43725

https://github.com/google/adk-python/blob/v1.13.0/src/google/adk/models/lite_llm.py#L395

function_declaration.parameters.required condition errors out when the tool doesn't have any required arguments, e.g.,

def foo(tool_context: ToolContext):
    """Operations to be carried out from tool_context."""
    ...

because the function_declaration.parameter attribute doesn't have required attribute.

This issue doesn't exist in version 1.12.0.

Activity

  1. added
    models
    on Sep 9, 2025
  2. added theissue type on Sep 9, 2025
  3. self-assigned this
    on Nov 10, 2025
  4. GWeale commented on Nov 10, 2025

    @GWeale
    Collaborator

    Hi, thank you for raising this issue! We just put a fix in for this for the next release!

  5. added a commit that references this issue on Aug 11, 2026
    84956a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

models

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions