flexeval.classes.turn#
- class flexeval.classes.turn.Turn(**kwargs)[source]#
Bases:
BaseModel
Holds a single turn In a conversational exchange, each ‘Turn’ holds information from 1 or more outputs from the same source or role in sequence
- Attributes:
- dirty_fields
Methods
format_input_for_rubric
([...])This is the 'public' method that returns the info for this Turn
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.
get_context
([include_system_prompt])Context is the context of the first message 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_completion
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