Skip to content

Test tool matching with conditions #37

@evaline-ju

Description

@evaline-ju

Test scenario

Tool matching should work leveraging the existing plugin manager capabilities - this should likely be tested after #29 to ensure the expected functionality is ported over

Example config

# PII detection ONLY for test2_hello_world
  - name: "PIIDetection"
    kind: "plugins.examples.nemocheck.plugin.NemoCheck"
    hooks: ["tool_post_invoke"]
    mode: "enforce"
    priority: 150
    conditions:
      - tools: ["test2_hello_world"]  # Scope to particular tools
        server_ids: []
        tenant_ids: []
    config:
      checkserver_url: "http://nemo-guardrails-service:8000/v1/guardrail/checks"
      nemo_config_id: "pii-detection"

Proposed Testing

In an cluster where multiple tools are available to the gateway, test that the plugin functionalities (at least individual Nemo rails) can be scoped to particular tools

Want to contribute?

  • I would like to work on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions