AS AgentScopeAPI 手册 / API Reference
类class agentscope.message

Base64Source

class Base64Source(BaseModel)
源码Source agentscope/message/_block.py:56–64

base64 来源。位于 agentscope.message 包。

The base64 source. Declared in agentscope.message.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
typeLiteral['base64']
类型字段。
'base64'
datastr
数据字段。
—
media_typestr
`media_type` 字段。
—

属性详情Attribute Detail

type

Literal['base64'] = 'base64'

类型字段。声明为 Literal['base64']。

The type field.

源码Source agentscope/message/_block.py:59

data

str

数据字段。声明为 str。

The data field.

源码Source agentscope/message/_block.py:61

media_type

str

media_type 字段。声明为 str。

The media type field.

源码Source agentscope/message/_block.py:63
基于官方固定版本源码静态生成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.