[**agentfootprint**](../../../../README.md)

***

[agentfootprint](/agentfootprint/api/generated/README.md) / [Payloads](/agentfootprint/api/generated/agentfootprint/namespaces/Payloads/README.md) / ContextInjectedPayload

# Interface: ContextInjectedPayload

Defined in: [src/events/payloads.ts:193](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L193)

## Properties

### asRecency?

> `readonly` `optional` **asRecency?**: [`ContextRecency`](/agentfootprint/api/generated/type-aliases/ContextRecency.md)

Defined in: [src/events/payloads.ts:199](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L199)

***

### asRole?

> `readonly` `optional` **asRole?**: [`ContextRole`](/agentfootprint/api/generated/type-aliases/ContextRole.md)

Defined in: [src/events/payloads.ts:198](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L198)

***

### budgetSpent?

> `readonly` `optional` **budgetSpent?**: `object`

Defined in: [src/events/payloads.ts:209](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L209)

#### fractionOfCap

> `readonly` **fractionOfCap**: `number`

#### tokens

> `readonly` **tokens**: `number`

***

### contentHash

> `readonly` **contentHash**: `string`

Defined in: [src/events/payloads.ts:195](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L195)

***

### contentSummary

> `readonly` **contentSummary**: `string`

Defined in: [src/events/payloads.ts:194](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L194)

***

### expiresAfter?

> `readonly` `optional` **expiresAfter?**: [`ContextLifetime`](/agentfootprint/api/generated/type-aliases/ContextLifetime.md)

Defined in: [src/events/payloads.ts:210](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L210)

***

### position?

> `readonly` `optional` **position?**: `number`

Defined in: [src/events/payloads.ts:200](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L200)

***

### rankPosition?

> `readonly` `optional` **rankPosition?**: `number`

Defined in: [src/events/payloads.ts:207](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L207)

***

### rawContent?

> `readonly` `optional` **rawContent?**: `string`

Defined in: [src/events/payloads.ts:196](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L196)

***

### reason

> `readonly` **reason**: `string`

Defined in: [src/events/payloads.ts:205](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L205)

***

### retrievalScore?

> `readonly` `optional` **retrievalScore?**: `number`

Defined in: [src/events/payloads.ts:206](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L206)

***

### sectionTag?

> `readonly` `optional` **sectionTag?**: `string`

Defined in: [src/events/payloads.ts:201](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L201)

***

### slot

> `readonly` **slot**: [`ContextSlot`](/agentfootprint/api/generated/type-aliases/ContextSlot.md)

Defined in: [src/events/payloads.ts:197](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L197)

***

### source

> `readonly` **source**: [`ContextSource`](/agentfootprint/api/generated/type-aliases/ContextSource.md)

Defined in: [src/events/payloads.ts:202](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L202)

***

### sourceId?

> `readonly` `optional` **sourceId?**: `string`

Defined in: [src/events/payloads.ts:203](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L203)

***

### threshold?

> `readonly` `optional` **threshold?**: `number`

Defined in: [src/events/payloads.ts:208](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L208)

***

### upstreamRef?

> `readonly` `optional` **upstreamRef?**: `string`

Defined in: [src/events/payloads.ts:204](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/events/payloads.ts#L204)
