pub trait IntoPromptResult {
// Required method
fn into_prompt_result(self) -> Result<GetPromptResult, ToolError>;
}Expand description
Conversion of a prompt’s return value into a result.
| Return type | Result |
|---|---|
String, &'static str | One user text message |
PromptMessage, Vec<PromptMessage> | The messages |
GetPromptResult | As given |
Result<T, E> | T as above; E as for tools |
Required Methods§
Sourcefn into_prompt_result(self) -> Result<GetPromptResult, ToolError>
fn into_prompt_result(self) -> Result<GetPromptResult, ToolError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".