Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def execute_score_select_function(config: ExecuteScoreSelectFunctionConfig

from pydantic import BaseModel

executable_fn: Function = builder.get_function(name=config.augmented_fn)
executable_fn: Function = await builder.get_function(name=config.augmented_fn)

if config.scorer:
scorer = await builder.get_ttc_strategy(strategy_name=config.scorer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ async def register_ttc_tool_wrapper_function(

augmented_function_desc = config.tool_description

fn_input_schema: BaseModel = augmented_function.input_schema
fn_output_schema: BaseModel = augmented_function.single_output_schema
fn_input_schema: type[BaseModel] = augmented_function.input_schema
fn_output_schema: type[BaseModel] | type[None] = augmented_function.single_output_schema

runnable_llm = input_llm.with_structured_output(schema=fn_input_schema)

Expand Down