ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::vision::VlmResult Struct Reference

The description + arbitrary attributes a vision-language model returned for one crop. More...

#include <vlm_protocol.hpp>

Collaboration diagram for reusex::vision::VlmResult:

Public Attributes

std::string description
 Free-text description of the object/material.
std::vector< std::pair< std::string, std::string > > attributes
 Arbitrary key/value pairs the model returned.
std::string raw_json
 The raw response body, verbatim.
bool ok = false
 True only when a non-empty description OR at least one attribute was recovered (never fabricated).

Detailed Description

The description + arbitrary attributes a vision-language model returned for one crop.

The prompt fully drives which keys come back, so there is no fixed schema: a free-text description plus a list of key/value pairs. The parser never fabricates a value (STANDARDS ยง5).

Definition at line 31 of file vlm_protocol.hpp.

Member Data Documentation

◆ attributes

std::vector<std::pair<std::string, std::string> > reusex::vision::VlmResult::attributes

Arbitrary key/value pairs the model returned.

Definition at line 34 of file vlm_protocol.hpp.

Referenced by reusex::vision::parse_vlm_response().

◆ description

std::string reusex::vision::VlmResult::description

Free-text description of the object/material.

Definition at line 32 of file vlm_protocol.hpp.

Referenced by reusex::vision::parse_vlm_response().

◆ ok

bool reusex::vision::VlmResult::ok = false

True only when a non-empty description OR at least one attribute was recovered (never fabricated).

Definition at line 36 of file vlm_protocol.hpp.

Referenced by reusex::vision::parse_vlm_response().

◆ raw_json

std::string reusex::vision::VlmResult::raw_json

The raw response body, verbatim.

Definition at line 35 of file vlm_protocol.hpp.

Referenced by reusex::vision::parse_vlm_response().


The documentation for this struct was generated from the following file: