Stabilize OpenSim agent runtime and Mentra integration
This commit is contained in:
@@ -11,7 +11,9 @@ use crate::policy::{
|
||||
AllowedOrigins, ApprovalRule, AuthorizedAction, Capability, FixedCost, Idempotency,
|
||||
OriginClass, PolicyError, PolicyReasonCode, PolicyTool, ResourceCost, ResourceEstimator, Risk,
|
||||
};
|
||||
use crate::types::{BoundedText, MAX_BODY_BYTES, MAX_OBSERVABLE_DETAIL_BYTES, ToolCallOutcome};
|
||||
use crate::types::{
|
||||
BoundedText, MAX_BODY_BYTES, MAX_IDENTIFIER_BYTES, MAX_OBSERVABLE_DETAIL_BYTES, ToolCallOutcome,
|
||||
};
|
||||
use libremetaverse_types::UUID;
|
||||
use libremetaverse_types::compat::CancellationToken;
|
||||
use serde::Serialize;
|
||||
@@ -36,7 +38,7 @@ pub const CURRENT_POSE_TOOL: &str = "behavior_current_pose";
|
||||
|
||||
const WALK_POLL: Duration = Duration::from_millis(250);
|
||||
const TURN_INTERVAL: Duration = Duration::from_millis(40);
|
||||
const MAX_ACTION_ID_BYTES: usize = 96;
|
||||
const MAX_ACTION_ID_BYTES: usize = MAX_IDENTIFIER_BYTES;
|
||||
const MAX_TURN_STEP_DEGREES: f64 = 30.0;
|
||||
const ARRIVAL_METERS: f64 = 0.5;
|
||||
const STUCK_PROGRESS_METERS: f64 = 0.05;
|
||||
@@ -1214,7 +1216,7 @@ fn valid_action_id(value: &str) -> bool {
|
||||
!value.is_empty()
|
||||
&& value.len() <= MAX_ACTION_ID_BYTES
|
||||
&& value.chars().all(|character| {
|
||||
character.is_ascii_alphanumeric() || matches!(character, '-' | '_' | '.' | ':')
|
||||
character.is_ascii_alphanumeric() || matches!(character, '-' | '_' | '.' | ':' | '|')
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user