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

Step Metadata #26

Merged
merged 20 commits into from
Sep 25, 2024
Merged

Step Metadata #26

merged 20 commits into from
Sep 25, 2024

Conversation

ollmer
Copy link
Collaborator

@ollmer ollmer commented Sep 24, 2024

move prompt id, task and by to the step metadata

@ollmer
Copy link
Collaborator Author

ollmer commented Sep 24, 2024

tests are still red, working on it


def llm_dict(self) -> dict:
return self.model_dump(exclude={"prompt_id", "task", "by"}, exclude_none=True)
def task(self, task: str) -> Self:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this become node?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably, I want to discuss that with Dima one more time to make things more clear in my head :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see that this method mutates the object, so at the very least I'd call it set_task, but @jpt-sn 's comment is more important.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed to .by_node(). Are you ok with that name?

Copy link
Collaborator

@rizar rizar left a comment

Choose a reason for hiding this comment

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

Looks almost good! Please set the node that made the step in tapeagents.core.agent.

@ollmer ollmer changed the title [WIP] Step Metadata Step Metadata Sep 25, 2024
@ollmer ollmer merged commit aa79eac into main Sep 25, 2024
2 checks passed
@ollmer ollmer deleted the step_metadata branch September 25, 2024 17:00
@rizar
Copy link
Collaborator

rizar commented Sep 25, 2024

it's amazing to see it done!!! thanks, @ollmer!

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.

3 participants