Skip to content

azd ai toolbox create doesn't work with a tool that doesn't need connection or rai_policy #8354

@lindazqli

Description

@lindazqli

a tool without connection (eg web search)

yaml:
description: >
web-search only
tools:

  • type: web_search

azd command: azd ai toolbox create wstest --from-file C:\Temp\ws.yaml `
--project-endpoint https://hengyl-aif-wus2.services.ai.azure.com/api/projects/projectcgnp

error: ERROR: invalid YAML in "C:\Temp\ws-only.yaml": yaml: unmarshal errors:
line 3: field tools not found in type cmd.toolboxCreateFile

Suggestion: fix the file and retry; see azd ai toolbox create --help or
azd ai toolbox connection add --help for the supported file shape

exit=1

guardtail/rai policy

yaml:

description: probe v2 policies.rai_config
policies:
rai_config:
name: Microsoft.Default
connections:

  • name: mslearn-anon

azd command: azd ai toolbox create wstest --from-file C:\Temp\ws.yaml `
--project-endpoint https://hengyl-aif-wus2.services.ai.azure.com/api/projects/projectcgnp

error: line 2: field policies not found in type cmd.toolboxCreateFile

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingext-agentsazure.ai.{agents,connections,inspector,projects,routines,skills,toolboxes} extensions

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions