mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-23 19:15:00 +01:00
16 lines
401 B
Rust
16 lines
401 B
Rust
use serde_json::{Value, json};
|
|
|
|
pub fn append_agent_hints(schema: &mut Value) {
|
|
let Some(schema_obj) = schema.as_object_mut() else {
|
|
return;
|
|
};
|
|
|
|
schema_obj.insert(
|
|
"x-yaak-agent-hints".to_string(),
|
|
json!({
|
|
"templateVariableSyntax": "${[ my_var ]}",
|
|
"templateFunctionSyntax": "${[ namespace.my_func(a='aaa',b='bbb') ]}",
|
|
}),
|
|
);
|
|
}
|