Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pixar tool #19

Merged
merged 2 commits into from
May 25, 2023
Merged

pixar tool #19

merged 2 commits into from
May 25, 2023

Conversation

eob
Copy link
Contributor

@eob eob commented May 25, 2023

No description provided.

@eob eob merged commit 5bac765 into friday-example-agent May 25, 2023

def run(self, tool_input: List[Block], context: AgentContext) -> Union[List[Block], Task[Any]]:
# Modify the tool inputs by interpolating them with stored prompt here
modified_inputs = [Block(text=self.prompt_template.format(subject=block.text)) for block in tool_input]
Copy link
Contributor

@douglas-reid douglas-reid May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only thing you may want to consider is adding a conditional on the modified_inputs to ensure the block is a text block.

... for block in tool_input if block.is_text() or something

@douglas-reid douglas-reid deleted the pixar-tool branch May 26, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants