Skip to content

Commit

Permalink
- additional prompt tweaks;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Aug 26, 2024
1 parent a239fd6 commit 9b84650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coverup/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def get_info(ctx: CodeSegment, name: str) -> str:
"""
{
"name": "get_info",
"description": "Returns information about a function, class or method.",
"description": "Returns information about a symbol.",
"parameters": {
"type": "object",
"properties": {
Expand All @@ -178,9 +178,9 @@ def get_info(ctx: CodeSegment, name: str) -> str:
from .codeinfo import get_info, parse_file

if info := get_info(parse_file(ctx.path), name):
return info
return "\"...\" below indicates omitted code.\n\n" + info

return "Unable to obtain information."
return f"Unable to obtain information on {name}."


def get_functions(self) -> T.List[T.Callable]:
Expand Down

0 comments on commit 9b84650

Please sign in to comment.