File size: 920 Bytes
2ef5cbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""The fixed entry point through which external programs drive this agent.

For the contract, see `.d2a_spec/functional_spec.md` §0.1.2.

These signatures must not change: external programs call exactly this shape.
"""
from __future__ import annotations


def create_session(*, deny=None, mode=None, role=None, cwd=None) -> "AgentSession":
    raise NotImplementedError


class AgentSession:
    @property
    def cwd(self) -> str:
        raise NotImplementedError

    @property
    def messages(self) -> list:
        raise NotImplementedError

    def dispatch(self, command: str) -> str:
        raise NotImplementedError

    def chat(self, text: str) -> str:
        raise NotImplementedError

    def config_get(self, key: str):
        raise NotImplementedError

    @property
    def mcp_servers(self) -> list:
        raise NotImplementedError

    def close(self) -> None:
        raise NotImplementedError