InitializeRequest
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| InitializeProxyRequest aclientp.schema.proxy Request parameters for ``proxy/initialize``. Same as ``initialize``. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Request aclientp.schema.base Base request model. |
â‹” Inheritance diagram¶
graph TD
95970860876208["client_requests.InitializeRequest"]
95970858197488["base.Request"]
95970862258240["base.AnnotatedObject"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970858197488 --> 95970860876208
95970862258240 --> 95970858197488
95970862254416 --> 95970862258240
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: Request
Request parameters for the initialize method.
Sent by the client to establish connection and negotiate capabilities.
See protocol docs: Initialization
Source code in src/aclientp/schema/client_requests.py
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | |
client_capabilities
class-attribute
instance-attribute
¶
client_capabilities: ClientCapabilities | None = Field(default_factory=ClientCapabilities)
Capabilities supported by the client.
client_info
class-attribute
instance-attribute
¶
client_info: Implementation | None = None
Information about the Client name and version sent to the Agent.
Note: in future versions of the protocol, this will be required.
protocol_version
instance-attribute
¶
The latest protocol version supported by the client.
create
classmethod
¶
create(
title: str,
name: str,
version: str,
terminal: bool = True,
read_text_file: bool = True,
write_text_file: bool = True,
protocol_version: int = 1,
terminal_auth: bool = False,
prompt_suggestions: bool = False,
compaction: bool = False,
notices: bool = False,
metadata: dict[str, Any] | None = None,
) -> Self
Create a new InitializeRequest instance.
Source code in src/aclientp/schema/client_requests.py
create_for_package
classmethod
¶
create_for_package(
package_name: str,
allow_terminal: bool = True,
allow_file_operations: bool = True,
terminal_auth: bool = False,
prompt_suggestions: bool = False,
compaction: bool = False,
notices: bool = False,
metadata: dict[str, Any] | None = None,
) -> InitializeRequest
Create ACP initialize request for app with given name (based on pkg metadata).