#Agent Run contract
Part of the Jig standard library. With a contracts parent directory,
copy the installed agreement and its license using
jig import-contract jig:agent-run contracts/agent-run.
Agent Run lets a Flow ask an operator-selected Agent for a bounded response. The Flow supplies instructions, any selected package-local Skills, and an optional structured-result schema. The operator chooses the Agent, model, credentials, and endpoint.
The ordinary HTTP and native Agent Flows share this interface. Selected Skill contents are explicit caller data, not host-attested provenance. Consumers independently check structured answers; the operator chooses an implementation and grants its required resources.
#Why did this address bring me here?
https://jig.md/contracts/agent-run identifies the shared interface, not
an Agent server or an API endpoint. You may have found it in a
FLOW.contract.json file inside a Flow package.
That file is a local copy of the interface the Flow expects, not a new Agent implementation. Jig matches its contract ID, exact version, and canonical descriptor digest against the selected Flow implementation. Copying the file does not provide an Agent or grant permission to use one.
The descriptor also names optional events, conversation, and sessions
behavior. Implementations declare what they support; callers declare what they
require. Jig can reject mismatching declarations before a caller starts, but
matching claims establish neither implementation honesty nor resource authority.
The feature definitions
explain the separate turn, retention and execution limits.
This page is an explanatory guide. Jig does not fetch it to resolve an invocation, and changing this page does not change the contract. Matching uses the package-local descriptor offline. The ID names the contract across versions; the descriptor carries the version and exact interface.
#Where to go next
- Use the invocation: read the Agent Run specification for request and result fields, Skills, limits, and failure behavior.
- Configure an Agent: follow the Agent configuration guide. Do not use this contract ID as your provider's base URL.
- Get the interface file: download the
Agent Run JSON descriptor.
Keep its referenced events,
commands, and
replies
descriptors beside it under
contracts/, preserving their filenames. Copy the complete bundle into the Flow package and reference the invocation descriptor fromFLOW.meta.json(or Markdown frontmatter), as the specification shows. - See it in an application: try the support-case application.
- Continue or restore work: read Agent conversations. Native restoration requires a separately reviewed retention grant, a single-use reference, and qualification of the installed client's save-and-restore path. Its receipt appears only in the final invocation output; an individual answer does not prove retention.
- Understand contract matching: read FLOW Invocation Contract/0.
The interface is a prerelease candidate. Check the specification and your installed host's supported contract before adopting a descriptor update. An Agent response is not proof that its claims are true; application checks and the operator's data policy still matter.