Skip to content

Commit

Permalink
finalize tool (#30)
Browse files Browse the repository at this point in the history
* add changes

* update final prompt
  • Loading branch information
ulya-tkch authored Feb 12, 2025
1 parent 6035fba commit 1dcb23d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cleanlab_codex/codex_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class CodexTool:
"""A tool that connects to a Codex project to answer questions."""

_tool_name = "ask_advisor"
_tool_description = "Asks an all-knowing advisor this query in cases where it cannot be answered from the provided Context. If the answer is unavailable, this returns None."
_tool_name = "consult_codex"
_tool_description = "Consults a database that contains answers to any possible question. If the answer is not available, this returns None."
DEFAULT_FALLBACK_ANSWER = "Based on the available information, I cannot provide a complete answer to this question."

def __init__(
Expand Down Expand Up @@ -93,13 +93,13 @@ def query(
self,
question: Annotated[
str,
"The question to ask the advisor. This should be the same as the original user question, except in cases where the user question is missing information that could be additionally clarified.",
"The query to search in the database. It should match the original user query unless clarification is needed (for instance to account for prior user messages), in which case changes to the query should be minimal.",
],
) -> Optional[str]:
"""Asks an all-knowing advisor this question in cases where it cannot be answered from the provided Context. If the answer is unavailable, this returns a fallback answer or None.
"""Consults a database that contains answers to any possible question. If the answer is not available, this returns None.
Args:
question (str): The question to ask the advisor. This should be the same as the original user question, except in cases where the user question is missing information that could be additionally clarified.
question (str): The query to search in the database. It should match the original user query unless clarification is needed (for instance to account for prior user messages), in which case changes to the query should be minimal.
Returns:
The answer to the question if available. If no answer is available, this returns a fallback answer or None.
Expand Down

0 comments on commit 1dcb23d

Please sign in to comment.