MCPcopy Create free account

hub / github.com/agentrpc/agentrpc / functions

Functions130 in github.com/agentrpc/agentrpc

↓ 39 callersMethodget
Make a GET request to the API. Args: path: The API path. params: Query parameters. Returns: The
sdk-python/src/agentrpc/http_client.py:162
↓ 13 callersFunctionNew
Initializes a new AgentRPC client. Parameters: 0 - options: The options for the AgentRPC client. Example: // Create a new AgentRPC instance with a
sdk-go/agentrpc.go:50
↓ 13 callersMethodRegister
Registers a Tool Parameters: - input: The Tool definition. Example: // Create a new AgentRPC instance with an API secret client := inferable.New(
sdk-go/agentrpc.go:114
↓ 13 callersMethodregister
({ name, handler, schema, config, description, }: ToolRegistrationInput<T>)
sdk-node/src/agentrpc.ts:154
↓ 10 callersMethodError
Error implements the error interface, allowing Interrupts to be used as errors. This enables interrupts to be returned from functions that return erro
sdk-go/interrupt.go:24
↓ 10 callersMethodlisten
()
sdk-node/src/agentrpc.ts:192
↓ 7 callersFunctioncreateAndPollJob
( client: ReturnType<typeof createApiClient>, clusterId: string, toolName: string, // eslint-disable-n
sdk-node/src/polling.ts:309
↓ 7 callersMethodget_tools
Fetch tools from the API.
sdk-python/src/agentrpc/openai.py:13
↓ 5 callersMethodexecute_tool
Execute a tool by function name and arguments.
sdk-python/src/agentrpc/openai.py:28
↓ 5 callersMethodunlisten
()
sdk-node/src/agentrpc.ts:210
↓ 4 callersMethodListen
()
sdk-go/agentrpc.go:118
↓ 4 callersMethodcallFunc
(funcName string, args ...interface{})
sdk-go/agentrpc.go:135
↓ 4 callersFunctionexecuteFn
( fn: ToolRegistrationInput<any>["handler"], args: Parameters<ToolRegistrationInput<any>["handler"]>, )
sdk-node/src/execute-fn.ts:11
↓ 4 callersFunctionextractInterrupt
( input: unknown, )
sdk-node/src/util.ts:191
↓ 4 callersFunctionserializeError
(value, options = {})
sdk-node/src/serialize-error.js:183
↓ 4 callersFunctiontestInstance
()
sdk-node/src/tests/utils.ts:29
↓ 3 callersMethodUnlisten
()
sdk-go/agentrpc.go:122
↓ 3 callersMethodapproval
( notification?: z.infer<typeof interruptSchema>["notification"], )
sdk-node/src/util.ts:218
↓ 3 callersFunctioncreateApiClient
({ baseUrl, machineId, clientAbortController, apiSecret, }: { baseUrl?: string; machineId?: string
sdk-node/src/create-client.ts:8
↓ 3 callersMethodfetchData
(options client.FetchDataOptions)
sdk-go/agentrpc.go:159
↓ 3 callersMethodpersistJobResult
(jobID string, result callResult)
sdk-go/polling.go:313
↓ 3 callersFunctiontestService
()
sdk-node/src/agentrpc.test.ts:13
↓ 2 callersMethodFetchData
(options FetchDataOptions)
sdk-go/internal/client/client.go:44
↓ 2 callersFunctionNewInterrupt
NewInterrupt creates a new Interrupt with the specified type and message. This is a general constructor for creating interrupts.
sdk-go/interrupt.go:33
↓ 2 callersFunctionajvErrorToFailures
( error: Error, )
sdk-node/src/util.ts:150
↓ 2 callersFunctionbuildZodObject
(schema: any)
sdk-node/src/bin.ts:106
↓ 2 callersFunctioncontinueDestroyCircular
(value)
sdk-node/src/serialize-error.js:120
↓ 2 callersFunctiondestroyCircular
({ from, seen, to, forceEnumerable, maxDepth, depth, useToJSON, serialize, })
sdk-node/src/serialize-error.js:85
↓ 2 callersFunctionisErrorLike
(value)
sdk-node/src/serialize-error.js:207
↓ 2 callersFunctionisZodType
(input: any)
sdk-node/src/util.ts:184
↓ 2 callersFunctionproductService
()
sdk-node/src/tests/utility/product.ts:30
↓ 2 callersFunctionregisterMachine
( client: ReturnType<typeof createApiClient>, tools?: ToolRegistrationInput<any>[], )
sdk-node/src/polling.ts:242
↓ 2 callersMethodregisterMachine
(s *pollingAgent)
sdk-go/agentrpc.go:197
↓ 2 callersMethodserverOk
()
sdk-go/agentrpc.go:172
↓ 2 callersFunctionvalidateFunctionSchema
( input: JsonSchemaInput, )
sdk-node/src/util.ts:73
↓ 1 callersFunctionGetMachineID
()
sdk-go/internal/util/util.go:17
↓ 1 callersMethodUnlisten
Stop stops the service and cancels the polling
sdk-go/polling.go:154
↓ 1 callersMethod_prepareSuperMessage
(message)
sdk-node/src/serialize-error.js:33
↓ 1 callersFunctionanimalService
()
sdk-node/src/tests/errors/animals.ts:19
↓ 1 callersFunctionbuildZodProp
(prop: any, key: string)
sdk-node/src/bin.ts:118
↓ 1 callersMethodcreatePollingAgent
()
sdk-go/agentrpc.go:126
↓ 1 callersMethodcreate_and_poll_job
Create and poll a job using the HTTP client.
sdk-python/src/agentrpc/client.py:36
↓ 1 callersMethodcreate_job
( self, cluster_id: str, function_name: Optional[str] = None, tool_name: Optio
sdk-python/src/agentrpc/http_client.py:60
↓ 1 callersFunctionfn
(val: { [key: string]: string })
sdk-node/src/execute-fn.test.ts:6
↓ 1 callersFunctiongenerateSnippets
()
docs/scripts/generate-snippets.ts:5
↓ 1 callersFunctiongetErrorConstructor
(name)
sdk-node/src/serialize-error.js:82
↓ 1 callersMethodget_job
(self, cluster_id: str, job_id: str)
sdk-python/src/agentrpc/http_client.py:88
↓ 1 callersMethodhandleMessage
(msg callMessage)
sdk-go/polling.go:224
↓ 1 callersMethodisPolling
()
sdk-go/polling.go:358
↓ 1 callersMethodlist_tools
List tools from the HTTP client.
sdk-python/src/agentrpc/client.py:32
↓ 1 callersFunctionmachineId
()
sdk-node/src/machine-id.ts:9
↓ 1 callersFunctionmain
()
sdk-node/src/bin.ts:35
↓ 1 callersFunctionmain
()
examples/python/openai-agents.py:8
↓ 1 callersFunctionmain
()
examples/python/openai-completions-openrouter.py:7
↓ 1 callersFunctionmain
()
examples/python/openai-completions.py:7
↓ 1 callersFunctionmain
()
examples/python/openai-completions-claude.py:7
↓ 1 callersFunctionmain
()
examples/node/openai-completions-claude.ts:10
↓ 1 callersFunctionmain
()
examples/node/openai-completions.ts:7
↓ 1 callersFunctionmain
()
examples/node/openai-completions-openrouter.ts:10
↓ 1 callersMethodpoll
()
sdk-go/polling.go:161
↓ 1 callersFunctionpollForJobCompletion
( client: ReturnType<typeof createApiClient>, clusterId: string, jobId: string, initialStatus?: string
sdk-node/src/polling.ts:272
↓ 1 callersMethodpollIteration
()
sdk-node/src/polling.ts:89
↓ 1 callersMethodpoll_for_job_completion
( self, cluster_id: str, job_id: str, initial_status: Optional[str] = None,
sdk-python/src/agentrpc/http_client.py:100
↓ 1 callersMethodpost
Make a POST request to the API. Args: path: The API path. data: The request body. params: Optional query
sdk-python/src/agentrpc/http_client.py:192
↓ 1 callersMethodprocessCall
(call: JobMessage)
sdk-node/src/polling.ts:138
↓ 1 callersMethodrunLoop
()
sdk-node/src/polling.ts:62
↓ 1 callersMethodstart
()
sdk-node/src/polling.ts:49
↓ 1 callersMethodstop
()
sdk-node/src/polling.ts:57
↓ 1 callersFunctiontestService
()
sdk-node/src/polling.test.ts:8
↓ 1 callersFunctiontoJSON
(from)
sdk-node/src/serialize-error.js:75
↓ 1 callersFunctionvalidateFunctionArgs
(schema: any, args: unknown)
sdk-node/src/util.ts:17
↓ 1 callersFunctionvalidateProperty
( key: string, value: JsonSchema, )
sdk-node/src/util.ts:115
↓ 1 callersFunctionvalidatePropertyName
(name: string)
sdk-node/src/util.ts:55
FunctionApprovalInterrupt
ApprovalInterrupt creates a new approval interrupt with the specified message. Approval interrupts are used when user approval is required to continue
sdk-go/interrupt.go:42
FunctionGeneralInterrupt
GeneralInterrupt creates a new general interrupt with the specified message. General interrupts can be used for various purposes that require interrup
sdk-go/interrupt.go:48
FunctionGenerateMachineID
(length int)
sdk-go/internal/util/util.go:26
FunctionGetTestVars
()
sdk-go/internal/util/test_util.go:9
MethodListen
Start polling for jobs, registers the machine, and starts polling for messages
sdk-go/polling.go:115
FunctionNewClient
NewClient creates a new Agent API client
sdk-go/internal/client/client.go:24
MethodRegister
(fn Tool)
sdk-go/polling.go:55
FunctionTestCallFunc
(t *testing.T)
sdk-go/agentrpc_test.go:24
FunctionTestGetMachineID
(t *testing.T)
sdk-go/agentrpc_test.go:70
FunctionTestInferableFunctions
(t *testing.T)
sdk-go/main_test.go:29
FunctionTestNew
(t *testing.T)
sdk-go/agentrpc_test.go:12
FunctionTestRegisterFunc
(t *testing.T)
sdk-go/service_test.go:17
FunctionTestRegisterFuncWithInlineStruct
(t *testing.T)
sdk-go/service_test.go:53
FunctionTestRegistrationAndConfig
(t *testing.T)
sdk-go/service_test.go:89
FunctionTestServerOk
(t *testing.T)
sdk-go/agentrpc_test.go:52
FunctionTestServiceStartAndReceiveFailingMessage
(t *testing.T)
sdk-go/service_test.go:206
FunctionTestServiceStartAndReceiveMessage
(t *testing.T)
sdk-go/service_test.go:131
Method__init__
Initialize the AgentRPC client. Args: api_secret: The API secret key. endpoint: Custom API endpoint. Defaults to 'htt
sdk-python/src/agentrpc/client.py:8
Method__init__
(self, message: str, status_code: int = None, response: dict = None)
sdk-python/src/agentrpc/errors.py:4
Method__init__
(self, client)
sdk-python/src/agentrpc/openai.py:10
Method__init__
(self, client)
sdk-python/src/agentrpc/openai.py:51
Method__init__
(self, client)
sdk-python/src/agentrpc/openai.py:57
Method__init__
(self, client)
sdk-python/src/agentrpc/openai.py:81
Method__init__
Initialize the HTTP client. Args: endpoint: The API endpoint. api_secret: The API secret key.
sdk-python/src/agentrpc/http_client.py:11
Methodconstructor
* Initializes a new AgentRPC instance. * @param apiSecret The API Secret for your AgentRPC cluster. If not provided, it will be read from the `INFE
sdk-node/src/agentrpc.ts:75
Methodconstructor
( type: VALID_INTERRUPT_TYPES, notification?: z.infer<typeof interruptSchema>["notification"], )
sdk-node/src/util.ts:208
Methodconstructor
(message)
sdk-node/src/serialize-error.js:29
next →1–100 of 130, ranked by callers