Package com.embabel.agent.prompt
Class ResponseFormat
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement
public final class ResponseFormat implements PromptContributorPromptContributor that defines the expected response format for text responses
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classResponseFormat.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringroleprivate final Stringformatprivate final PromptContributionLocationpromptContributionLocationpublic final static ResponseFormat.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description ResponseFormat(String format)
-
Method Summary
Modifier and Type Method Description StringgetRole()final StringgetFormat()Stringcontribution()-
Methods inherited from class com.embabel.common.ai.prompt.PromptElement
getPromptContributionLocation -
Methods inherited from class com.embabel.common.ai.prompt.PromptContributor
promptContribution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-