(
&self,
request: AgentThreadGoalGetRequest,
)
| 533 | } |
| 534 | |
| 535 | pub async fn get_thread_goal( |
| 536 | &self, |
| 537 | request: AgentThreadGoalGetRequest, |
| 538 | ) -> Result<Option<ThreadGoal>, RuntimeError> { |
| 539 | let thread_goal_management = self |
| 540 | .thread_goal_management |
| 541 | .as_ref() |
| 542 | .ok_or(RuntimeError::MissingThreadGoalManagementPort)?; |
| 543 | thread_goal_management |
| 544 | .get_thread_goal(request) |
| 545 | .await |
| 546 | .map_err(RuntimeError::from) |
| 547 | } |
| 548 | |
| 549 | pub async fn create_thread_goal( |
| 550 | &self, |
no test coverage detected