flexeval.classes.thread#

class flexeval.classes.thread.Thread(**kwargs)[source]#

Bases: BaseModel

Class for holding a single thread / conversation This corresponds to a single row in a jsonl file or a single ‘thread_id’ in a langgraph checkpoint database

Attributes:
dirty_fields

Methods

format_input_for_rubric()

get_content([include_toolcalls])

Content is a list of dictionaries where each dictionary contains the role and content of messages and tool calls in the turn.

DoesNotExist

add_index

alias

bind

bind_ctx

bulk_create

bulk_update

clone

coerce

copy

create

create_table

delete

delete_by_id

delete_instance

dependencies

drop_table

filter

get

get_by_id

get_formatted_prompt

get_id

get_or_create

get_or_none

index

insert

insert_from

insert_many

is_alias

is_dirty

noop

raw

replace

replace_many

save

select

set_by_id

table_exists

truncate_table

unwrap

update

validate_model