MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / run

Method run

sdk/src/client.ts:56–60  ·  view source on GitHub ↗

* Run a Codebuff agent with the specified options. * * @param agent - The agent to run. Use 'base' for the default agent, or specify a custom agent ID if you made your own agent config. * @param prompt - The user prompt describing what you want the agent to do. * @param params - (Optiona

(
    options: RunOptions & CodebuffClientOptions,
  )

Source from the content-addressed store, hash-verified

54 * @returns A Promise that resolves to a RunState JSON object which you can pass to a subsequent run() call to continue the run. Use result.output to get the agent's output.
55 */
56 public async run(
57 options: RunOptions & CodebuffClientOptions,
58 ): Promise<RunState> {
59 return run({ ...this.options, ...options })
60 }
61
62 /**
63 * Check connection to the Codebuff backend by hitting the /healthz endpoint.

Callers 15

mainFunction · 0.95
testSdkFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
runOnceFunction · 0.95

Calls 1

runFunction · 0.90

Tested by 3

runOnceFunction · 0.76
runTaskFunction · 0.36
runTaskFunction · 0.36