MCPcopy Create free account

hub / github.com/Yifan-Song793/RestGPT / functions

Functions75 in github.com/Yifan-Song793/RestGPT

↓ 17 callersMethodrun
Run command with own globals/locals and returns anything printed.
model/parser.py:162
↓ 4 callersFunctionreduce_openapi_spec
Simplify/distill/minify a spec somehow. I want a smaller target for retrieval and (more importantly) I want smaller results from retrieval.
utils/oas_utils.py:100
↓ 3 callersFunctionget_matched_endpoint
(api_spec: ReducedOpenAPISpec, plan: str)
utils/utils.py:55
↓ 2 callersMethod__init__
(self, llm: BaseLLM, api_path: str, api_doc: Dict, with_example: bool = False)
model/parser.py:195
↓ 2 callersMethod_get_api_selector_background
(self, planner_history: List[Tuple[str, str]])
model/rest_gpt.py:116
↓ 1 callersMethod__init__
(self)
utils/utils.py:13
↓ 1 callersMethod_construct_scratchpad
( self, history: List[Tuple[str, str]], instruction: str )
model/api_selector.py:156
↓ 1 callersMethod_construct_scratchpad
( self, history: List[Tuple[str, str]] )
model/planner.py:126
↓ 1 callersMethod_construct_scratchpad
( self, history: List[Tuple[str, str]] )
model/caller.py:167
↓ 1 callersFunction_dereference_refs
( obj: Union[dict, list], stop: bool = False )
utils/oas_utils.py:28
↓ 1 callersMethod_get_action_and_input
(self, llm_output: str)
model/caller.py:178
↓ 1 callersMethod_get_response
(self, action: str, action_input: str)
model/caller.py:197
↓ 1 callersFunction_merge_allof
(obj)
utils/oas_utils.py:72
↓ 1 callersFunction_retrieve_ref_path
(path: str, full_spec: dict)
utils/oas_utils.py:17
↓ 1 callersMethod_should_continue
(self, iterations: int, time_elapsed: float)
model/caller.py:139
↓ 1 callersMethod_should_continue
(self, iterations: int, time_elapsed: float)
model/rest_gpt.py:96
↓ 1 callersMethod_should_continue_plan
(self, plan)
model/rest_gpt.py:121
↓ 1 callersMethod_should_end
(self, plan)
model/rest_gpt.py:126
↓ 1 callersFunctiondereference_refs
Try to substitute $refs. The goal is to get the complete docs for each endpoint in context for now. In the few OpenAPI specs I studied, $ref
utils/oas_utils.py:7
↓ 1 callersMethoddoRollover
(self)
utils/utils.py:35
↓ 1 callersFunctionfix_json_error
(data: str, return_str=True)
utils/utils.py:99
↓ 1 callersFunctioninit_spotify
(requests_wrapper)
utils/utils.py:124
↓ 1 callersFunctionmain
()
run.py:18
↓ 1 callersFunctionmain
()
run_tmdb.py:28
↓ 1 callersFunctionmain
()
init_spotify.py:13
↓ 1 callersFunctionmain
()
run_spotify.py:17
↓ 1 callersFunctionmerge
(to_merge)
utils/oas_utils.py:57
↓ 1 callersFunctionmerge_allof_properties
(obj)
utils/oas_utils.py:56
↓ 1 callersFunctionreduce_endpoint_docs
(docs: dict)
utils/oas_utils.py:145
↓ 1 callersFunctionrun
(query, api_spec, requests_wrapper, simple_parser=False)
run_tmdb.py:16
↓ 1 callersFunctionsimplify_json
(raw_json: dict)
utils/utils.py:83
Method__init__
(self, filename, mode='a', encoding=None, delay=False)
utils/utils.py:31
Method__init__
(self, llm: BaseLLM, scenario: str, api_spec: ReducedOpenAPISpec)
model/api_selector.py:117
Method__init__
(self, llm: BaseLLM, scenario: str, planner_prompt=PLANNER_PROMPT)
model/planner.py:94
Method__init__
(self, llm: BaseLLM, api_spec: ReducedOpenAPISpec, scenario: str, requests_wrapper: RequestsWrapper, simple_pa
model/caller.py:124
Method__init__
(self, llm: BaseLLM, api_path: str, api_doc: Dict, with_example: bool = False)
model/parser.py:344
Method__init__
( self, llm: BaseLLM, api_spec: ReducedOpenAPISpec, scenario: str, req
model/rest_gpt.py:37
Method_call
(self, inputs: Dict[str, Any])
model/api_selector.py:170
Method_call
(self, inputs: Dict[str, str])
model/planner.py:137
Method_call
(self, inputs: Dict[str, str])
model/caller.py:243
Method_call
(self, inputs: Dict[str, str])
model/parser.py:286
Method_call
(self, inputs: Dict[str, str])
model/parser.py:394
Method_call
( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = No
model/rest_gpt.py:131
Method_chain_type
(self)
model/api_selector.py:128
Method_chain_type
(self)
model/planner.py:98
Method_chain_type
(self)
model/caller.py:128
Method_chain_type
(self)
model/parser.py:264
Method_chain_type
(self)
model/parser.py:372
Method_chain_type
(self)
model/rest_gpt.py:73
Method_return
(self, output, intermediate_steps: list)
model/rest_gpt.py:107
Method_stop
(self)
model/api_selector.py:150
Method_stop
(self)
model/planner.py:120
Method_stop
(self)
model/caller.py:161
Methoddebug_input
(self)
model/rest_gpt.py:92
Methodinput_keys
(self)
model/api_selector.py:132
Methodinput_keys
(self)
model/planner.py:102
Methodinput_keys
(self)
model/caller.py:132
Methodinput_keys
Return the singular input key. :meta private:
model/parser.py:268
Methodinput_keys
Return the singular input key. :meta private:
model/parser.py:376
Methodinput_keys
Return the input keys. :meta private:
model/rest_gpt.py:77
Methodllm_prefix
Prefix to append the llm call with.
model/api_selector.py:145
Methodllm_prefix
Prefix to append the llm call with.
model/planner.py:115
Methodllm_prefix
Prefix to append the llm call with.
model/caller.py:156
Methodobservation_prefix
Prefix to append the observation with.
model/api_selector.py:140
Methodobservation_prefix
Prefix to append the observation with.
model/planner.py:110
Methodobservation_prefix
Prefix to append the observation with.
model/caller.py:151
Methodoutput_keys
(self)
model/api_selector.py:136
Methodoutput_keys
(self)
model/planner.py:106
Methodoutput_keys
(self)
model/caller.py:136
Methodoutput_keys
Return the singular output key. :meta private:
model/parser.py:276
Methodoutput_keys
Return the singular output key. :meta private:
model/parser.py:384
Methodoutput_keys
Return the singular output key. :meta private:
model/rest_gpt.py:85
Methodsave
Raise error - saving not supported for Agent Executors.
model/rest_gpt.py:64
MethodshouldRollover
(self, record)
utils/utils.py:49
Methodwrite
(self, data)
utils/utils.py:22