Skip to content

Commit a00597e

Browse files
authored
fix(unstable): Add missing session capabilities builder method (#380)
1 parent 7fbc621 commit a00597e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/agent.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,13 @@ impl AgentCapabilities {
24402440
self
24412441
}
24422442

2443+
/// Session capabilities supported by the agent.
2444+
#[must_use]
2445+
pub fn session_capabilities(mut self, session_capabilities: SessionCapabilities) -> Self {
2446+
self.session_capabilities = session_capabilities;
2447+
self
2448+
}
2449+
24432450
/// The _meta property is reserved by ACP to allow clients and agents to attach additional
24442451
/// metadata to their interactions. Implementations MUST NOT make assumptions about values at
24452452
/// these keys.

0 commit comments

Comments
 (0)