MCPcopy
hub / github.com/stitionai/devika / get_gpt_command

Function get_gpt_command

src/browser/interaction.py:494–501  ·  view source on GitHub ↗
(objective, url, previous_command, browser_content)

Source from the content-addressed store, hash-verified

492 )
493
494 def get_gpt_command(objective, url, previous_command, browser_content):
495 prompt = prompt_template
496 prompt = prompt.replace("$objective", objective)
497 prompt = prompt.replace("$url", url[:100])
498 prompt = prompt.replace("$previous_command", previous_command)
499 prompt = prompt.replace("$browser_content", browser_content[:4500])
500 response = LLM(model_id=model_id).inference(prompt)
501 return response
502
503 def run_cmd(cmd):
504 cmd = cmd.split("\n")[0]

Callers 1

start_interactionFunction · 0.85

Calls 2

LLMClass · 0.90
inferenceMethod · 0.45

Tested by

no test coverage detected