类的使用
io.agentscope.core.message.Source
使用Source的程序包
-
io.agentscope.core.formatter.openai中Source的使用
修饰符和类型方法说明static StringOpenAIConverterUtils.convertImageSourceToUrl(Source source) Convert an image source to a URL string.static StringOpenAIConverterUtils.convertVideoSourceToUrl(Source source) Convert a video source to a URL string. -
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.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 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.