repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/yingqi-z20/Agent-libOS
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/yingqi-z20-Agen...git clone gitlawb://did:key:z6MkqRzA.../yingqi-z20-Agen...d98dd2c9IPC1d ago| #2 |
| #3 | from agent_libos.models import MaterializedContext |
| #4 |
| #5 |
| #6 | def format_context_message(context: MaterializedContext) -> str: |
| #7 | omitted = ", ".join(context.omitted_objects) if context.omitted_objects else "none" |
| #8 | return ( |
| #9 | f"Context policy: {context.policy_used}\n" |
| #10 | f"Token estimate: {context.token_count}\n" |
| #11 | f"Omitted objects: {omitted}\n\n" |
| #12 | f"{context.text}" |
| #13 | ) |
| #14 |
| #15 |