AgentOffer platform.agent-offer@1
Generated at from
openvibe-contracts v0.84.0 and
openvibe-sdk v0.26.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- ADR-034
- Schema
https://openvibe.network/contracts/platform/agent-offer.v1.json
Agent model capacity and token pricing (T1 Universal Fabric; ADR-034 proposed).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes | ||
harness | string | yes | Registered harness offer id | |
provider | string | yes | ||
model | string | yes | ||
context_limits | object | yes |
| |
context_limits.input_tokens | integer | yes |
| |
context_limits.output_tokens | integer | yes |
| |
concurrency | integer | yes |
| |
price_per_1k_tokens | object | yes |
| |
price_per_1k_tokens.fresh_usd | number | yes | Estimated USD |
|
price_per_1k_tokens.cached_usd | number | yes | Estimated USD |
|
price_per_1k_tokens.output_usd | number | yes | Estimated USD |
|
availability_windows | array of object | yes | Empty means no time restriction |
|
availability_windows[].start | string | yes |
| |
availability_windows[].end | string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"id": "agent-1",
"harness": "harness-1",
"provider": "example-ai",
"model": "model-1",
"context_limits": {
"input_tokens": 128000,
"output_tokens": 8192
},
"concurrency": 4,
"price_per_1k_tokens": {
"fresh_usd": 0.003,
"cached_usd": 0.001,
"output_usd": 0.01
},
"availability_windows": []
}Rejected: missing-id
{
"harness": "harness-1",
"provider": "example-ai",
"model": "model-1",
"context_limits": {
"input_tokens": 128000,
"output_tokens": 8192
},
"concurrency": 4,
"price_per_1k_tokens": {
"fresh_usd": 0.003,
"cached_usd": 0.001,
"output_usd": 0.01
},
"availability_windows": []
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('platform.agent-offer@1', value); // { valid, errors: [{ path, message }] }