Describes how to set up and integrate a custom model so that it can be used with Foundry.
model.yaml
manifest file. This file stores metadata about the model, including its name, description, inference parameters, model output ontology, API endpoint, and other details. You need to create the model.yaml
file in the following format:
prompt
: Contains the current conversation with the model. For single-turn queries, it’s a single instance. For multi-turn queries, it includes conversation history and the latest request. Each prompt
has a message structure with two properties: role
and parts
.
role
: A string indicating the individual producing the message content. Possible values include:
system
: Instructions to the model.user
: User-generated message sent by a real person.assistant
: Model-generated message, used to insert responses from the model during multi-turn conversations.parts
: A list of ordered parts that make up a multi-part message content. It can contain the following segments of data:
text
: Text prompt or code snippet.image
: Base64 encoded image.