(req: &StructuredRequest, mode: StructuredMode)
| 973 | } |
| 974 | |
| 975 | fn build_tools(req: &StructuredRequest, mode: StructuredMode) -> Vec<ToolDefinition> { |
| 976 | match mode { |
| 977 | StructuredMode::Tool => { |
| 978 | vec![ToolDefinition { |
| 979 | name: format!("emit_{}", req.schema_name), |
| 980 | description: req |
| 981 | .schema_description |
| 982 | .clone() |
| 983 | .unwrap_or_else(|| format!("Emit a structured {} object", req.schema_name)), |
| 984 | parameters: req.schema.clone(), |
| 985 | }] |
| 986 | } |
| 987 | _ => vec![], |
| 988 | } |
| 989 | } |
| 990 | |
| 991 | /// Outcome of mining a response for the structured object across all candidate sources. |
| 992 | struct StructuredResolution { |
no outgoing calls
no test coverage detected