MCPcopy Index your code
hub / github.com/anomalyco/opencode / usable

Function usable

packages/opencode/src/plugin/github-copilot/models.ts:192–199  ·  view source on GitHub ↗
(item: Item)

Source from the content-addressed store, hash-verified

190}
191
192function usable(item: Item): item is SelectableItem {
193 return (
194 item.policy?.state !== "disabled" &&
195 item.capabilities.limits?.max_output_tokens !== undefined &&
196 item.capabilities.limits.max_prompt_tokens !== undefined &&
197 item.capabilities.supports.tool_calls !== undefined
198 )
199}
200
201export async function get(
202 baseURL: string,

Callers 1

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected