viewport-context
Progressive skill loading and per-skill tool binding for agents (Python, import viewportai.context). The model starts
with a short catalog and one tool, load_skill; each skill's instructions and tools arrive only when it loads, inside a
token budget. The npm package @viewportai/context implements the same spec, pinned by shared conformance vectors.
pip install viewport-context # or: uv add viewport-context
Python 3.11 or newer. To build from source, see https://github.com/viewportai/context#from-source.
import asyncio
from tools import issue_refund, lookup_order, search_docs # your core tools
from viewportai import context
async def main() -> None:
skills = context.load_skills("skills", tools=[lookup_order, issue_refund, search_docs], budget=8_000)
session = skills.session()
print(session.prompt("My order A-1001 arrived damaged.").tool_names) # ['load_skill']
await session.call("load_skill", name="refunds") # exactly what the model does
print(session.prompt().tool_names) # ['load_skill', 'lookup_order', 'issue_refund']
asyncio.run(main())
A skill's tools become callable in the next step, once a new prompt is built, so the model reads the instructions first; a tool called in the same step as its skill's load is refused with a message to call it next step.
Adapters (extras): viewportai.context.langgraph, .openai_agents, .claude_agent_sdk (preview), .pydantic_ai,
.anthropic,
.openai; test helpers in viewportai.context.testing and pytest fixtures (tmp_skills, skills, skill_events).
Docs, examples and the design: https://github.com/viewportai/context. License: Apache-2.0.
Metadata
Release files for viewport-context 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viewport_context-0.1.0.tar.gz | 106.4 kB | Without provenance | Details for viewport_context-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viewport_context-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for viewport_context-0.1.0-py3-none-any.whl |
Total release size: 237.3 kB
Release files / viewport_context-0.1.0.tar.gz
| Download URL | viewport_context-0.1.0.tar.gz |
|---|---|
| Size | 106.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
274d5402c8e86740465379051b1530053dbf140ac5dd37ef9ad4c99554ff919f
|
|
BLAKE2b-256 checksum How to use checksums |
f3d0dad18bbac88615e09bd1609f487b6c91c21d9e04c8fea296586f9d57e2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / viewport_context-0.1.0-py3-none-any.whl
| Download URL | viewport_context-0.1.0-py3-none-any.whl |
|---|---|
| Size | 130.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b812ffbae6342a62a09f23735769dd2e19efa7bf97e482371e2b91b6d47c6cf
|
|
BLAKE2b-256 checksum How to use checksums |
a51f5da5b47276e31c621ea80351cd3f884e79375133ae22b0b08ce88b6a747e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for viewport-context 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.