MCPcopy Create free account
hub / github.com/apache/burr / user_input

Function user_input

examples/recursive/application.py:151–159  ·  view source on GitHub ↗

Collects user input for the poem generation process.

(
    state: State, max_drafts: int, poem_types: List[str], poem_subject: str
)

Source from the content-addressed store, hash-verified

149 ],
150)
151def user_input(
152 state: State, max_drafts: int, poem_types: List[str], poem_subject: str
153) -> Tuple[dict, State]:
154 """Collects user input for the poem generation process."""
155 return {
156 "max_drafts": max_drafts,
157 "poem_types": poem_types,
158 "poem_subject": poem_subject,
159 }, state.update(max_drafts=max_drafts, poem_types=poem_types, poem_subject=poem_subject)
160
161
162@action(reads=["max_drafts", "poem_types", "poem_subject"], writes=["proposals"])

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected