Wardrik. Resource
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
Names what an action acts on, as IAM resources do.
| Resource | Names |
|---|---|
acme/agent/triage | the agent acme/triage |
acme/@jon/agent/triage | the agent acme/@jon/triage |
acme/mcp_server/linear | the org's MCP server linear |
acme/@jon/connection/github | Jon's GitHub account |
deployment | the deployment |
Summary
Functions
Returns the resource for the agent id, or :error if it isn't an agent ID.
Returns the deployment's resource.
Returns the resource for something owner holds: every item of kind, or the one named.
Functions
Returns the resource for the agent id, or :error if it isn't an agent ID.
Wardrik.Resource.agent("acme/triage")
#=> {:ok, "acme/agent/triage"}
Wardrik.Resource.agent("acme/triage/C1-1696.1234")
#=> {:ok, "acme/agent/triage/conversation/C1-1696.1234"}
@spec deployment() :: String.t()
Returns the deployment's resource.
Returns the resource for something owner holds: every item of kind, or the one named.
Wardrik.Resource.owned("acme", "mcp_server", "linear")
#=> "acme/mcp_server/linear"