> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: AgentClient

> Generated from the public TypeScript API.

An owned connection to a Cognitio runtime and its session handles. Closing it tears down local resources and an SDK-spawned server.

## Properties

### baseUrl

```ts theme={null}
readonly baseUrl: string;
```

***

### sessions

```ts theme={null}
readonly sessions: SessionNamespace;
```

***

### transportKind

```ts theme={null}
readonly transportKind: TransportKind;
```

## Methods

### close()

```ts theme={null}
close(): Promise<void>;
```

Close all client-owned handles and transport resources. A remote server itself remains running.

#### Returns

`Promise`\<`void`>

Completion after owned cleanup has settled.

#### Throws

A cleanup failure or aggregate of failures.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.