AS AgentScopeAPI 手册 / API Reference

ThinkOptionDeserializer

class ThinkOptionDeserializer extends JsonDeserializer<ThinkOption>
源码Source io/agentscope/extensions/model/ollama/options/ThinkOption.java:76–95

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

Custom deserializer implementation for ThinkOption. Detects the JSON token type (boolean or string) and instantiates the corresponding ThinkOption implementation.

方法摘要Method Summary

方法Method说明Description
public ThinkOption deserialize(JsonParser p, DeserializationContext ctxt) throws IOException
执行 `deserialize` 方法。
Performs the deserialize operation.

方法详情Method Detail

deserialize

public ThinkOption deserialize(JsonParser p, DeserializationContext ctxt) throws IOException

执行 deserialize 方法。

Performs the deserialize operation.

参数Parameters
名称Name类型Type说明Description
pJsonParserp(类型 `JsonParser`)。The p.
ctxtDeserializationContextctxt(类型 `DeserializationContext`)。The ctxt.
返回Returns ThinkOption
返回ThinkOption。Returns think option.
抛出Throws
  • IOException 可能抛出 `IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/extensions/model/ollama/options/ThinkOption.java:78–94
基于官方固定版本源码静态生成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.