mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-17 06:58:09 +01:00
Merge branch 'development' of https://github.com/joshmsmith/temporal-ai-agent into development
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"hrsAddedPerMonth": 8
|
"hrsAddedPerMonth": 8
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"email": "lainecaseysmith@gmail.com",
|
"email": "laine@awesome.com",
|
||||||
"currentPTOHrs": 40,
|
"currentPTOHrs": 40,
|
||||||
"hrsAddedPerMonth": 12
|
"hrsAddedPerMonth": 12
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,17 +8,17 @@ TREASURE_LOCATION = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HINTS = [
|
HINTS = [
|
||||||
"state of Washington",
|
"country of " + TREASURE_LOCATION["country"],
|
||||||
"city of Seattle",
|
"state of " + TREASURE_LOCATION["state_full"],
|
||||||
|
"city of " + TREASURE_LOCATION["city"],
|
||||||
"at a company HQ",
|
"at a company HQ",
|
||||||
|
"The company's tech traces its roots to a project called Cadence", #thanks, Grok
|
||||||
|
"The company offers a tool that lets developers write code as if it's running forever, no matter what crashes", #thanks, Grok
|
||||||
]
|
]
|
||||||
''' Grok provided hints:
|
''' Additional Grok provided hints about Temporal:
|
||||||
Here are additional company-specific clues about Temporal that could help players in your game guess the address (300 Lenora St, Seattle, WA) by focusing on the company itself. These are designed to be intriguing and game-friendly:
|
|
||||||
|
|
||||||
"This company was founded by two engineers who previously worked on a system named after a South American river at Uber."
|
"This company was founded by two engineers who previously worked on a system named after a South American river at Uber."
|
||||||
"Their platform is all about orchestrating workflows that can survive failures—like a conductor keeping the music going."
|
"Their platform is all about orchestrating workflows that can survive failures—like a conductor keeping the music going."
|
||||||
"They offer a tool that lets developers write code as if it’s running forever, no matter what crashes."
|
"They offer a tool that lets developers write code as if it’s running forever, no matter what crashes."
|
||||||
"The company’s tech traces its roots to a project called Cadence, which they took to the next level."
|
|
||||||
"Their mission is tied to making distributed systems feel as simple as writing a single app."
|
"Their mission is tied to making distributed systems feel as simple as writing a single app."
|
||||||
"They’ve got a knack for ‘durability’—both in their software and their growing reputation."
|
"They’ve got a knack for ‘durability’—both in their software and their growing reputation."
|
||||||
"This outfit spun out of experiences at AWS and Uber, blending cloud and ride-sharing know-how."
|
"This outfit spun out of experiences at AWS and Uber, blending cloud and ride-sharing know-how."
|
||||||
@@ -34,7 +34,6 @@ def give_hint(args: dict) -> dict:
|
|||||||
index = hint_total % len(HINTS)
|
index = hint_total % len(HINTS)
|
||||||
hint_text = HINTS[index]
|
hint_text = HINTS[index]
|
||||||
|
|
||||||
print(f"hint_total: {hint_total}, length: {len(HINTS)}, index: {index}")
|
|
||||||
hint_total = hint_total + 1
|
hint_total = hint_total + 1
|
||||||
return {
|
return {
|
||||||
"hint_number": hint_total,
|
"hint_number": hint_total,
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ guess_location_tool = ToolDefinition(
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# ----- Travel use cases tools -----
|
# ----- Travel use cases tools -----
|
||||||
search_flights_tool = ToolDefinition(
|
search_flights_tool = ToolDefinition(
|
||||||
name="SearchFlights",
|
name="SearchFlights",
|
||||||
@@ -198,12 +199,12 @@ future_pto_calc_tool = ToolDefinition(
|
|||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="start_date",
|
name="start_date",
|
||||||
type="string",
|
type="string",
|
||||||
description="Start date of proposed PTO",
|
description="Start date of proposed PTO, sent in the form yyyy-mm-dd",
|
||||||
),
|
),
|
||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="end_date",
|
name="end_date",
|
||||||
type="string",
|
type="string",
|
||||||
description="End date of proposed PTO",
|
description="End date of proposed PTO, sent in the form yyyy-mm-dd",
|
||||||
),
|
),
|
||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="email",
|
name="email",
|
||||||
@@ -221,12 +222,12 @@ book_pto_tool = ToolDefinition(
|
|||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="start_date",
|
name="start_date",
|
||||||
type="string",
|
type="string",
|
||||||
description="Start date of proposed PTO",
|
description="Start date of proposed PTO, sent in the form yyyy-mm-dd",
|
||||||
),
|
),
|
||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="end_date",
|
name="end_date",
|
||||||
type="string",
|
type="string",
|
||||||
description="End date of proposed PTO",
|
description="End date of proposed PTO, sent in the form yyyy-mm-dd",
|
||||||
),
|
),
|
||||||
ToolArgument(
|
ToolArgument(
|
||||||
name="email",
|
name="email",
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ with workflow.unsafe.imports_passed_through():
|
|||||||
# Constants
|
# Constants
|
||||||
MAX_TURNS_BEFORE_CONTINUE = 250
|
MAX_TURNS_BEFORE_CONTINUE = 250
|
||||||
|
|
||||||
SHOW_CONFIRM = True
|
|
||||||
show_confirm_env = os.getenv("SHOW_CONFIRM")
|
show_confirm_env = os.getenv("SHOW_CONFIRM")
|
||||||
if show_confirm_env is not None:
|
if show_confirm_env is not None and show_confirm_env.lower() == "false":
|
||||||
if show_confirm_env == "False":
|
|
||||||
SHOW_CONFIRM = False
|
SHOW_CONFIRM = False
|
||||||
|
else:
|
||||||
|
SHOW_CONFIRM = True
|
||||||
|
|
||||||
#ToolData as part of the workflow is what's accessible to the UI - see LLMResponse.jsx for example
|
#ToolData as part of the workflow is what's accessible to the UI - see LLMResponse.jsx for example
|
||||||
class ToolData(TypedDict, total=False):
|
class ToolData(TypedDict, total=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user