AS AgentScopeAPI 手册 / API Reference

SystemInstructions

@JsonClassDescription("System instructions") public class SystemInstructions
源码Source io/agentscope/core/tracing/telemetry/model/SystemInstructions.java:33–54

表示列出的系统指令已发送到模型。位于 io.agentscope.core.tracing.telemetry.model 包。核心成员包括 getParts、create、getSerializableObject。

Represents the list of system instructions sent to the model.

Thread unsafe model.

方法摘要Method Summary

方法Method说明Description
public List<MessagePart> getParts()
获取 `getParts`。
Returns the parts.
public static SystemInstructions create(List<MessagePart> parts)
static
创建并返回实例。
Creates and returns an instance.
public List<MessagePart> getSerializableObject()
获取 `getSerializableObject`。
Returns the serializable object.

方法详情Method Detail

getParts

public List<MessagePart> getParts()

获取 getParts。

Returns the parts.

返回Returns List<MessagePart>
返回列出。Returns list.
源码Source io/agentscope/core/tracing/telemetry/model/SystemInstructions.java:38–41

create

public static SystemInstructions create(List<MessagePart> parts)
static

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
partsList<MessagePart>parts(类型 `List`)。The parts.
返回Returns SystemInstructions
返回SystemInstructions。Returns system instructions.
源码Source io/agentscope/core/tracing/telemetry/model/SystemInstructions.java:43–45

getSerializableObject

public List<MessagePart> getSerializableObject()

获取 getSerializableObject。

Returns the serializable object.

返回Returns List<MessagePart>
返回列出。Returns list.
源码Source io/agentscope/core/tracing/telemetry/model/SystemInstructions.java:47–49
基于官方固定版本源码静态生成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.