pub struct ToolCallStateRef<'a> { /* private fields */ }Expand description
Typed state reference for reading and writing state.
All modifications are automatically collected by the associated PatchSink.
Implementations§
Source§impl<'a> ToolCallStateRef<'a>
impl<'a> ToolCallStateRef<'a>
Sourcepub fn call_id(&self) -> TireaResult<String>
pub fn call_id(&self) -> TireaResult<String>
Read the field value.
Sourcepub fn tool_name(&self) -> TireaResult<String>
pub fn tool_name(&self) -> TireaResult<String>
Read the field value.
Sourcepub fn arguments(&self) -> TireaResult<Value>
pub fn arguments(&self) -> TireaResult<Value>
Read the field value.
Sourcepub fn status(&self) -> TireaResult<ToolCallStatus>
pub fn status(&self) -> TireaResult<ToolCallStatus>
Read the field value.
Sourcepub fn resume_token(&self) -> TireaResult<Option<String>>
pub fn resume_token(&self) -> TireaResult<Option<String>>
Read the optional field value.
Sourcepub fn resume(&self) -> TireaResult<Option<ToolCallResume>>
pub fn resume(&self) -> TireaResult<Option<ToolCallResume>>
Read the optional field value.
Sourcepub fn scratch(&self) -> TireaResult<Value>
pub fn scratch(&self) -> TireaResult<Value>
Read the field value.
Sourcepub fn updated_at(&self) -> TireaResult<u64>
pub fn updated_at(&self) -> TireaResult<u64>
Read the field value.
Sourcepub fn set_call_id(&self, value: impl Into<String>) -> TireaResult<()>
pub fn set_call_id(&self, value: impl Into<String>) -> TireaResult<()>
Set the field value.
Sourcepub fn set_tool_name(&self, value: impl Into<String>) -> TireaResult<()>
pub fn set_tool_name(&self, value: impl Into<String>) -> TireaResult<()>
Set the field value.
Sourcepub fn set_arguments(&self, value: Value) -> TireaResult<()>
pub fn set_arguments(&self, value: Value) -> TireaResult<()>
Set the field value.
Sourcepub fn set_status(&self, value: ToolCallStatus) -> TireaResult<()>
pub fn set_status(&self, value: ToolCallStatus) -> TireaResult<()>
Set the field value.
Sourcepub fn set_resume_token(&self, value: Option<String>) -> TireaResult<()>
pub fn set_resume_token(&self, value: Option<String>) -> TireaResult<()>
Set the optional field value.
Sourcepub fn resume_token_none(&self) -> TireaResult<()>
pub fn resume_token_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn set_resume(&self, value: Option<ToolCallResume>) -> TireaResult<()>
pub fn set_resume(&self, value: Option<ToolCallResume>) -> TireaResult<()>
Set the optional field value.
Sourcepub fn resume_none(&self) -> TireaResult<()>
pub fn resume_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn set_scratch(&self, value: Value) -> TireaResult<()>
pub fn set_scratch(&self, value: Value) -> TireaResult<()>
Set the field value.
Sourcepub fn set_updated_at(&self, value: u64) -> TireaResult<()>
pub fn set_updated_at(&self, value: u64) -> TireaResult<()>
Set the field value.
Sourcepub fn delete_call_id(&self) -> TireaResult<()>
pub fn delete_call_id(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_tool_name(&self) -> TireaResult<()>
pub fn delete_tool_name(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_arguments(&self) -> TireaResult<()>
pub fn delete_arguments(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_status(&self) -> TireaResult<()>
pub fn delete_status(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_resume_token(&self) -> TireaResult<()>
pub fn delete_resume_token(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_resume(&self) -> TireaResult<()>
pub fn delete_resume(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_scratch(&self) -> TireaResult<()>
pub fn delete_scratch(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_updated_at(&self) -> TireaResult<()>
pub fn delete_updated_at(&self) -> TireaResult<()>
Delete this field entirely from the object.