AS AgentScopeAPI 手册 / API Reference

AdditionalPodMetadata

@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public static class AdditionalPodMetadata
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:121–152

Additional Pod 元数据,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.kubernetes.client.crd 包。核心成员包括 getLabels、setLabels、getAnnotations、setAnnotations、AdditionalPodMetadata。

A class in io.agentscope.extensions.sandbox.kubernetes.client.crd that executes code and tools inside isolated environments. Declared in io.agentscope.extensions.sandbox.kubernetes.client.crd.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AdditionalPodMetadata()
初始化 `AdditionalPodMetadata` 实例。
Creates a new instance.
public AdditionalPodMetadata(Map<String, String> labels, Map<String, String> annotations)
初始化 `AdditionalPodMetadata` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Map<String, String> getLabels()
获取 `getLabels`。
Returns the labels.
public void setLabels(Map<String, String> labels)
设置 `setLabels`。
Sets the labels.
public Map<String, String> getAnnotations()
获取注解。
Returns the annotations.
public void setAnnotations(Map<String, String> annotations)
设置注解。
Sets the annotations.

构造器详情Constructor Detail

AdditionalPodMetadata

public AdditionalPodMetadata()

初始化 AdditionalPodMetadata 实例。

Creates a new instance.

源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:130

AdditionalPodMetadata

public AdditionalPodMetadata(Map<String, String> labels, Map<String, String> annotations)

初始化 AdditionalPodMetadata 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
labelsMap<String, String>labels(类型 `Map`)。The labels.
annotationsMap<String, String>注解(类型 `Map`)。The annotations.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:132–135

方法详情Method Detail

getLabels

public Map<String, String> getLabels()

获取 getLabels。

Returns the labels.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:137–139

setLabels

public void setLabels(Map<String, String> labels)

设置 setLabels。

Sets the labels.

参数Parameters
名称Name类型Type说明Description
labelsMap<String, String>labels(类型 `Map`)。The labels.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:141–143

getAnnotations

public Map<String, String> getAnnotations()

获取注解。

Returns the annotations.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:145–147

setAnnotations

public void setAnnotations(Map<String, String> annotations)

设置注解。

Sets the annotations.

参数Parameters
名称Name类型Type说明Description
annotationsMap<String, String>注解(类型 `Map`)。The annotations.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:149–151
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.