Skip to content

Feature: Support Google LLM safety_settings paramΒ #3732

@tamirh

Description

@tamirh

Feature Type

Would make my life easier

Feature Description

Gemini supports various content filtering parameters under safety_settings in the GenerateContentConfig call to restrict the LLM output based on different HarmCategory definitions and HarmBlockThreshold levels.

Could we update the google llm.py plugin so we can pass through the safety_settings as a param in the google.LLM() constructor?

Workarounds / Alternatives

  • Filtering and restrictions via prompts
  • Secondary agent watching text stream to monitor for safety

Additional Context

PR

#3733

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions