Repository navigation
Expand file tree
/
Copy pathTemplateConfigBuilder.java
More file actions
89 lines (69 loc) · 2.2 KB
/
Copy pathTemplateConfigBuilder.java
File metadata and controls
89 lines (69 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.qoder.cloudagents.forward;
import com.qoder.cloudagents.core.JsonObjectBuilder;
import com.qoder.cloudagents.core.JsonValue;
import java.util.List;
import java.util.Map;
/**
* Shared create/update fields. An unset field is omitted; a null setter writes JSON null.
* Server-side validation decides which fields accept null. Use omit() to remove a set field.
* Request headers belong in RequestOptions.
*/
public abstract class TemplateConfigBuilder<B extends TemplateConfigBuilder<B>>
extends JsonObjectBuilder<B> {
protected TemplateConfigBuilder() {}
public B name(String value) {
return put("name", value);
}
public B description(String value) {
return put("description", value);
}
public B model(ModelConfig value) {
return put("model", value);
}
public B modelId(String value) {
return put("model", value);
}
public B system(String value) {
return put("system", value);
}
public B maxToolRounds(Long value) {
return put("max_tool_rounds", value);
}
public B environmentId(String value) {
return put("environment_id", value);
}
/** Set the BYOC tunnel inherited by sessions. Pass null on update to clear the binding. */
public B tunnelId(String value) {
return put("tunnel_id", value);
}
public B tools(List<Tool> value) {
return put("tools", value);
}
public B managedToolConfig(ManagedToolConfig value) {
return put("managed_tool_config", value);
}
public B mcpServers(List<MCPServer> value) {
return put("mcp_servers", value);
}
public B skills(List<SkillBinding> value) {
return put("skills", value);
}
public B multiagent(MultiagentConfig value) {
return put("multiagent", value);
}
public B vaults(Map<String, ResourceBinding> value) {
return put("vaults", value);
}
public B files(Map<String, ResourceBinding> value) {
return put("files", value);
}
public B githubRepositories(Map<String, GitHubRepositoryConfig> value) {
return put("github_repositories", value);
}
public B environmentVariables(EnvironmentVariables value) {
return put("environment_variables", value);
}
public B metadata(Map<String, JsonValue> value) {
return put("metadata", value);
}
}