Skip to content

.NET: How to make a tool return both text and image? #1569

@itayfisz

Description

@itayfisz

How do I make an AITool return both image and text?

static ? GetImageAndText()
{
    string text = "...";
    string base64Image = "....";


    return ? // How do I return both the text and the image?
}

In SK, I have returned a ChatMessageContent, which contains ChatMessageContentItemCollection, that can contain TextContent and ImageContent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions