MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_xai_provider

Function with_xai_provider

atomic-agent/src/hooks/grok.rs:329–335  ·  view source on GitHub ↗
(mut raw: Value)

Source from the content-addressed store, hash-verified

327}
328
329fn with_xai_provider(mut raw: Value) -> Value {
330 if let Some(obj) = raw.as_object_mut() {
331 obj.entry("provider".to_string())
332 .or_insert_with(|| Value::String("xai".to_string()));
333 }
334 raw
335}
336
337/// Map Grok's `reason` onto the `finish_reason` field used by the record pipeline.
338fn normalize_stop_raw(mut raw: Value, reason: Option<&str>) -> Value {

Callers 1

parse_eventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected