pub struct AgentActivityCreatePromptInput {
pub id: Option<String>,
pub agent_session_id: Option<String>,
pub signal: Option<AgentActivitySignal>,
pub signal_metadata: Option<Value>,
pub contextual_metadata: Option<Value>,
pub content: Option<Box<AgentActivityPromptCreateInputContent>>,
pub source_comment_id: Option<String>,
}Expand description
Internal Input for creating prompt-type agent activities (created by users).
Fields§
§id: Option<String>The identifier in UUID v4 format. If none is provided, the backend will generate one.
agent_session_id: Option<String>The agent session this activity belongs to.
signal: Option<AgentActivitySignal>An optional modifier that provides additional instructions on how the activity should be interpreted.
signal_metadata: Option<Value>Metadata about this agent activity’s signal.
contextual_metadata: Option<Value>Internal Metadata about user-provided contextual information for this agent activity.
content: Option<Box<AgentActivityPromptCreateInputContent>>The content payload of the prompt agent activity.
source_comment_id: Option<String>The comment that contains the content of this activity.
Trait Implementations§
Source§impl Clone for AgentActivityCreatePromptInput
impl Clone for AgentActivityCreatePromptInput
Source§fn clone(&self) -> AgentActivityCreatePromptInput
fn clone(&self) -> AgentActivityCreatePromptInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AgentActivityCreatePromptInput
impl Default for AgentActivityCreatePromptInput
Source§fn default() -> AgentActivityCreatePromptInput
fn default() -> AgentActivityCreatePromptInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentActivityCreatePromptInput
impl<'de> Deserialize<'de> for AgentActivityCreatePromptInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentActivityCreatePromptInput
impl RefUnwindSafe for AgentActivityCreatePromptInput
impl Send for AgentActivityCreatePromptInput
impl Sync for AgentActivityCreatePromptInput
impl Unpin for AgentActivityCreatePromptInput
impl UnwindSafe for AgentActivityCreatePromptInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more