Publish harness and TUI open-source
initial sync from the monorepo
This commit is contained in:
commit
c68e39f604
2734 changed files with 1437016 additions and 0 deletions
34
crates/codegen/xai-grok-tools-api/build.rs
Normal file
34
crates/codegen/xai-grok-tools-api/build.rs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
fn main() {
|
||||
xai_proto_build::configure()
|
||||
.type_attribute(
|
||||
".", // match every message & enum
|
||||
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||
)
|
||||
// ToolConfigEntry is embedded in external JSON contracts (Computer Hub
|
||||
// `session.bind` metadata and agent-config JSON) where sparse payloads
|
||||
// must deserialize. Defaults are applied per optional field (not
|
||||
// type-level) so the required `id` field still fails deserialization
|
||||
// when missing instead of silently becoming "". See tests/wire_shape.rs.
|
||||
.field_attribute(
|
||||
".xai.grok.tools.v1.ToolConfigEntry.params_json",
|
||||
"#[serde(default)]",
|
||||
)
|
||||
.field_attribute(
|
||||
".xai.grok.tools.v1.ToolConfigEntry.name_override",
|
||||
"#[serde(default)]",
|
||||
)
|
||||
.field_attribute(
|
||||
".xai.grok.tools.v1.ToolConfigEntry.params_name_overrides",
|
||||
"#[serde(default)]",
|
||||
)
|
||||
.field_attribute(
|
||||
".xai.grok.tools.v1.ToolConfigEntry.behavior_version",
|
||||
"#[serde(default)]",
|
||||
)
|
||||
.field_attribute(
|
||||
".xai.grok.tools.v1.ToolConfigEntry.description_override",
|
||||
"#[serde(default)]",
|
||||
)
|
||||
.compile_protos(&["proto/grok-tools.proto"], &["proto/"])
|
||||
.unwrap();
|
||||
}
|
||||
Loading…
Reference in a new issue