forked from MarcinKorcz101/mk-ai-agents
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
112 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
content='Next steps:\n\n1. **Complete the task**: Empty the cafeteria trash.\n2. **Move to Medbay**: After completing the task, head to the Medbay to start working on the wiring task.\n3. **Begin the wiring task**: Once in Medbay, start the task to fix wiring. \n\nThis plan focuses on completing your current objective efficiently while also progressing towards your other tasks.' | ||
additional_kwargs={'refusal': None} | ||
response_metadata={ | ||
'token_usage': { | ||
'completion_tokens': 82, 'prompt_tokens': 998, 'total_tokens': 1080, 'completion_tokens_details': | ||
{'audio_tokens': None, 'reasoning_tokens': 0}, | ||
'prompt_tokens_details': | ||
{'audio_tokens': None, 'cached_tokens': 0} | ||
}, | ||
'model_name': 'gpt-4o-mini-2024-07-18', | ||
'system_fingerprint': 'fp_482c22a7bc', | ||
'finish_reason': 'stop', | ||
'logprobs': None} | ||
id='run-45031354-22f3-4a4b-a8f5-9dfac7dd5ecc-0' | ||
usage_metadata={'input_tokens': 998, 'output_tokens': 82, 'total_tokens': 1080, 'input_token_details': {'cache_read': 0}, 'output_token_details': {'reasoning': 0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pydantic import Field | ||
from openai import BaseModel | ||
|
||
class UsageMetadata(BaseModel): | ||
input_tokens: int = Field(default=0) | ||
output_tokens: int = Field(default=0) | ||
total_tokens: int = Field(default=0) | ||
cache_read: int = Field(default=0) | ||
cost: float = Field(default=0.0) | ||
|
||
def to_dict(self): | ||
return { | ||
"input_tokens": self.input_tokens, | ||
"output_tokens": self.output_tokens, | ||
"total_tokens": self.total_tokens, | ||
"cache_read": self.cache_read, | ||
"cost": self.cost, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters