类的使用
io.agentscope.core.message.Source
使用Source的程序包
-
io.agentscope.core.formatter中Source的使用
参数类型为Source的io.agentscope.core.formatter中的方法修饰符和类型方法说明static StringMediaUtils.resolveMimeType(Source source) Resolve the MIME type from aSource. -
io.agentscope.core.message中Source的使用
修饰符和类型类说明classRepresents Base64-encoded media content with media type and data.classRepresents URL-based media content.修饰符和类型方法说明AudioBlock.getSource()Gets the source of this audio content.DataBlock.getSource()Gets the source of this data block.ImageBlock.getSource()Gets the source of this image.VideoBlock.getSource()Gets the source of this video content.参数类型为Source的io.agentscope.core.message中的方法修饰符和类型方法说明Sets the source for the audio content.Sets the source for the data block.Sets the source for the image.Sets the source for the video content.参数类型为Source的io.agentscope.core.message中的构造器限定符构造器说明AudioBlock(Source source) Creates a new audio block for JSON deserialization.ImageBlock(Source source) Creates a new image block with source.VideoBlock(Source source) Creates a new video block with source.