MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / createAgentConfig

Function createAgentConfig

scripts/mars-api.mjs:243–248  ·  view source on GitHub ↗

* Create an immutable Agent Config. Secret values travel inside the * manifest (`secrets. .value`), are extracted server-side, and are * never returned.

(name, manifestYaml)

Source from the content-addressed store, hash-verified

241 * never returned.
242 */
243 async createAgentConfig(name, manifestYaml) {
244 const body = await request("POST", CONFIGS_PATH, {
245 body: { name, manifest_yaml: manifestYaml },
246 });
247 return body?.config ?? null;
248 },
249
250 /** Full config, including the parsed `manifest` the list omits. */
251 async getAgentConfig(configId) {

Callers

nothing calls this directly

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected