AS AgentScopeAPI 手册 / API Reference

ThinkOptionSerializer

class ThinkOptionSerializer extends JsonSerializer<ThinkOption>
源码Source io/agentscope/extensions/model/ollama/options/ThinkOption.java:59–70

Think 选项序列化器,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.ollama.options 包,继承自 JsonSerializer<ThinkOption>。核心成员包括 serialize。

Custom serializer implementation for ThinkOption. Responsible for converting the option object into the appropriate JSON primitive (boolean or string).

方法摘要Method Summary

方法Method说明Description
public void serialize(ThinkOption value, JsonGenerator gen, SerializerProvider serializers) throws IOException
执行 `serialize` 方法。
Performs the serialize operation.

方法详情Method Detail

serialize

public void serialize(ThinkOption value, JsonGenerator gen, SerializerProvider serializers) throws IOException

执行 serialize 方法。

Performs the serialize operation.

参数Parameters
名称Name类型Type说明Description
valueThinkOption值(类型 `ThinkOption`)。The value.
genJsonGeneratorgen(类型 `JsonGenerator`)。The gen.
serializersSerializerProviderserializers(类型 `SerializerProvider`)。The serializers.
抛出Throws
  • IOException 可能抛出 `IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/extensions/model/ollama/options/ThinkOption.java:61–69
基于官方固定版本源码静态生成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.