Documentation
¶
Overview ¶
Package fdbv3 runs the Full-Duplex Bench tool-use suite.
Each recording is a person asking for something that requires a function call, spoken with the disfluencies people actually produce - fillers, pauses, restarts, and spelled-out identifiers. The annotation says which call should happen and with what arguments, so scoring is a comparison rather than a judgement.
The arguments are where this suite earns its place. "Track order B-O-B-1-2" has to become track_order(order_id="BOB12"), and reassembling a spelled identifier from speech is a failure mode of its own - distinct from not knowing which tool to call, and invisible to a suite that only checks the function name. Both are reported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Catalog ¶
func Catalog(tasks []Task) ([]json.RawMessage, error)
Catalog builds the tool surface offered to the agent.
It always returns the complete twelve-call surface from the pinned official harness, never the subset or argument shape implied by the supplied tasks. The tasks are validated only as evaluation metadata. Handing an agent the expected answer's schema would both leak the answer and silently rewrite the benchmark owner's executable contract.
Types ¶
type ArgumentNormalizer ¶
ArgumentNormalizer is deployment-owned control metadata. It is intentionally separate from Catalog's provider-facing JSON Schema because private schema keywords and even strict patterns are not portable across model APIs.
func ArgumentNormalizers ¶
func ArgumentNormalizers(tool string) []ArgumentNormalizer
ArgumentNormalizers returns a fresh snapshot on every call so profile assembly can bind normalization policy without mutating benchmark state.
type Breakdown ¶
type Breakdown struct {
Tasks int `json:"tasks"`
// CalledRightTool is how often the exact expected call population used all
// the right function names, whether or not its arguments matched.
CalledRightTool int `json:"called_right_tool"`
// CalledWithRightArguments is the successful exact-population category.
CalledWithRightArguments int `json:"called_with_right_arguments"`
// SpellingFailures retains its historical field name, but is the general
// right-tools/wrong-arguments category. Aggregate score metrics cannot prove
// that a mismatch was specifically an identifier-reassembly failure.
SpellingFailures int `json:"identifier_failures"`
// NoCall is the zero-observed-call category.
NoCall int `json:"no_call_at_all"`
// MissingCalls means some calls were observed, but fewer than expected.
MissingCalls int `json:"missing_calls"`
// WrongTool means the observed population size was exact but at least one
// expected function name was absent.
WrongTool int `json:"wrong_tool"`
// ExtraCalls takes precedence over name and argument diagnostics because an
// unintended effect must never be presented as a spelling failure.
ExtraCalls int `json:"extra_calls"`
// FailedCalls means the population and tool names were exact but at least
// one attempted simulator effect returned an error/non-success result.
FailedCalls int `json:"failed_calls"`
// ReorderedCalls means the exact successful call population and arguments
// occurred in an order that violates the released workflow.
ReorderedCalls int `json:"reordered_calls"`
// InvalidScore contains completed imported/recovered rows whose authoritative
// metrics are absent, non-integral, impossible, or inconsistent with Passed.
InvalidScore int `json:"invalid_score"`
}
Breakdown assigns every completed row to exactly one diagnostic category. CalledRightTool is a derived aggregate, not an additional category.
type DialogueTurn ¶
type DialogueTurn struct {
User string `json:"user"`
}
DialogueTurn retains the exact released user text used to audit whether an expected argument is actually grounded in the recording. It is scorer-side evidence only: benchmark execution still presents the corresponding audio, never this text, to the agent.
type ExpectedCall ¶
type ExpectedCall struct {
Function string `json:"function"`
Args json.RawMessage `json:"args"`
// Note carries released conditional annotations verbatim. The pinned
// upstream-static metric intentionally ignores it; the separately named
// semantic-repaired diagnostic interprets only audited, objective notes.
Note string `json:"note,omitempty"`
}
ExpectedCall is one call the recording says should happen.
type Options ¶
type Options struct {
Root string
Endpoint string
Token string
Model string
Cell bench.Cell
Limit int
// TaskIDs selects exact released directory identities for a focused
// diagnostic while Catalog still derives the full released tool surface.
// A selected run remains incomplete and cannot become release evidence.
TaskIDs []string
Timeout time.Duration
Progress func(string)
// RuntimeAttestor captures exact graph execution evidence per task.
RuntimeAttestor bench.RuntimeAttestor
// Evidence receives only newly executed candidate attempts and exact audio
// from the same shared Realtime session used by deterministic scoring.
Evidence candidate.Plugin
EvidenceOrigin candidate.RunOrigin
// contains filtered or unexported fields
}
Options configures a run.
type Task ¶
type Task struct {
ID string `json:"id"`
Domain string `json:"domain"`
Title string `json:"title"`
Difficulty string `json:"difficulty"`
Dialogue []DialogueTurn `json:"dialogue,omitempty"`
Expected []ExpectedCall `json:"expected_tool_calls"`
Features []string `json:"disfluency_features"`
// AudioWAV owns the exact input.wav bytes admitted by a strict released-
// inventory load. Release playback decodes these retained bytes and never
// reopens AudioPath, closing the validation-to-playback TOCTOU window.
AudioWAV []byte `json:"-"`
// AudioPath is populated only by an explicitly diagnostic Load. It remains
// mutable by design and can never support released benchmark evidence.
AudioPath string `json:"-"`
Directory string `json:"-"`
}
Task is one recording.
func Load ¶
Load reads and validates every task directory it sees before applying a diagnostic limit. It is intentionally usable for small catalog fixtures, tolerates unrelated task-local sidecars, and leaves each task path-backed; its mutable playback cannot support release evidence. Named task artifacts remain regular-file and size checked. Benchmark execution additionally supplies the immutable released inventory.
func LoadReleased ¶
LoadReleased validates and loads the complete immutable 100-recording release. Production benchmark/profile preparation should use this entry point; Load remains available for small catalog fixtures and unit tests.