Files
wehub-resource-sync 0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

149 lines
3.9 KiB
YAML

# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: 'Bedrock Converse API - Tool/Function Calling'
prompts:
- 'Get the weather for {{city}}. Use the get_weather tool.'
providers:
# Claude with tools (native format) - via inference profile
- id: bedrock:converse:us.anthropic.claude-sonnet-4-6
label: Claude Sonnet 4.6 (Tools)
config:
region: us-east-1
maxTokens: 1024
temperature: 0
# Native Converse API tool format
tools:
- toolSpec:
name: get_weather
description: Get the current weather for a city
inputSchema:
json:
type: object
properties:
city:
type: string
description: The city name
unit:
type: string
enum: ['celsius', 'fahrenheit']
description: Temperature unit
required:
- city
toolChoice: auto
# Claude with OpenAI-compatible tool format
- id: bedrock:converse:us.anthropic.claude-sonnet-4-6
label: Claude Sonnet 4.6 (OpenAI Format)
config:
region: us-east-1
maxTokens: 1024
temperature: 0
# OpenAI-compatible format
tools:
- type: function
function:
name: get_weather
description: Get the current weather for a city
parameters:
type: object
properties:
city:
type: string
description: The city name
unit:
type: string
enum: ['celsius', 'fahrenheit']
description: Temperature unit
required:
- city
toolChoice: auto
# Claude with Anthropic tool format
- id: bedrock:converse:us.anthropic.claude-sonnet-4-6
label: Claude Sonnet 4.6 (Anthropic Format)
config:
region: us-east-1
maxTokens: 1024
temperature: 0
# Anthropic-compatible format
tools:
- name: get_weather
description: Get the current weather for a city
input_schema:
type: object
properties:
city:
type: string
description: The city name
unit:
type: string
enum: ['celsius', 'fahrenheit']
description: Temperature unit
required:
- city
toolChoice: auto
# Nova with tools
- id: bedrock:converse:amazon.nova-pro-v1:0
label: Nova Pro (Tools)
config:
region: us-east-1
maxTokens: 1024
temperature: 0
tools:
- toolSpec:
name: get_weather
description: Get the current weather for a city
inputSchema:
json:
type: object
properties:
city:
type: string
description: The city name
unit:
type: string
enum: ['celsius', 'fahrenheit']
description: Temperature unit
required:
- city
toolChoice: auto
defaultTest:
options:
# Extract the tool call input
transform: |
try {
const parsed = JSON.parse(output);
return parsed.input?.city || parsed.city || output;
} catch {
return output;
}
tests:
- vars:
city: Tokyo
assert:
- type: contains-any
value:
- Tokyo
- tool_use
- get_weather
- vars:
city: Paris
assert:
- type: contains-any
value:
- Paris
- tool_use
- get_weather
- vars:
city: New York
assert:
- type: contains-any
value:
- New York
- tool_use
- get_weather